about xml
  • NardoNardo November 2012

    Hello,

    I'm trying to parse some .xml to extract datas, so  I tried you're xml-testing.jsfl and xml.jsfl, in Codes Examples.
    And read you're support about xml.
    If I try this (xmlTest.jsfl) :

    xjsfl.init(this);
    clear()
    var xml = <xml> <a id='a' vowel="true"/> <b id='b'/> <c id='c' class="test" /> <d id='d' class="test"> <e id='e' vowel="true"> <f id='f' class="test" /> </e> </d> </xml>
    fl.trace(xml.toXMLString());
    var nodes = xml.find('a');
    trace("nodes :  " + nodes);

    trace >>

    nodes : undefined

     If I try 

     xml.remove('.test', true);
     trace(xml.toXMLString());

     


    trace >>

    XML > processing path ".test": Object (depth:4, objects:0, values:7, time:0.0 seconds)
    ---------------------------------------------------------------------------------------
    object => Object
    match: ".test"
    operator: "."
    node: "test"
    index: ""
    filter: ""
    attribute: ""
    matchIndex: 0
    <xml>
      <a id="a" vowel="true"/>
      <b id="b"/>
      <c id="c" class="test"/>
      <d id="d" class="test">
        <e id="e" vowel="true">
          <f id="f" class="test"/>
        </e>
      </d>
    </xml>

     

    I suppose I use a wrong method to access to nodes (?)
    Thank's for this great framework. 
    :-)
    Nardo 

  • DaveDave November 2012

    Hey Nardo,

    Halfway through a system reinstall at the moment, but I'll come back to this once I'm up and running again

    :D

  • NardoNardo November 2012

    Yop, no problemo, forget to say, I work on CS4 / both on windo (at work) and mac ( at home)

    ><{{{*> 

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID Sign In with Google Sign In with Twitter

Sign In Apply for Membership

Tagged