ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > irrXML
forum topic indicator rewind the xml pointer
person icon
Caliope
Registered User
Quote
2008-07-12 15:17:03

[size=14]Hi:

Anyone know how to rewind or reset to the begining the pointer in an xml parser?

I have been able to load a file and parse it, getting both elements and attributes.  I want to be able to count the elements on a first pass however, then go back and read the attributes on a second pass as I build the objects (elements) in the main program.  

thanks
<?xml version="1.0"?>

<Game>

    <Door>
     <Position X="200" Y="350" Z="150"/>
     <Rotation X="90" Y="90" Z="0"/>
     <displacement x="0" y="1" z="0"/>
     <env path="D:\\test"/>
    </Door>


    <Warrior>
     <Position X="200" Y="350" Z="150"/>
     <Rotation X="90" Y="90" Z="0"/>
     <Movement Running="True" StepSize="2.3"/>
     <env path="D:\\test"/>
    </Warrior>

    <Warrior>
     <Position X="200" Y="350" Z="150"/>
     <Rotation X="90" Y="90" Z="0"/>
     <Movement Running="True" StepSize="1.2"/>
     <env path="D:\\test"/>
    </Warrior>

    <Warrior>
     <Position X="100" Y="350" Z="250"/>
     <Rotation X="90" Y="90" Z="0"/>
     <Movement Running="False" StepSize="6.9"/>
     <env path="D:\\test"/>
     </Warrior>

</Game>
[/size]

person icon
niko
Moderator
Quote
2008-07-14 16:38:03

currently not possible, but you could add this functionality, irrXML is open source :)

person icon
Caliope
Registered User
Quote
2008-07-14 16:46:12

Thanks:

I'll get to work on it



Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |