dykan / APUIengine

an engine to run an APUI XML
0 stars 0 forks source link

XML Parsing #4

Open Schniz opened 11 years ago

dykan commented 11 years ago
<flow>
    <command id="1" type="bla" x="1" y="2">
        <prev>
            <id>1</id>
            <id>2</id>
        </prev>
        <next>
            <id>1</id>
            <id>2</id>
        </next>
        <attributes>
            <attr name="bla">bla</attr>
            <attr name="bla">bla</attr>
        </attributes>
    </command>
    <command id="1" type="bla" x="1" y="2">
        <prev>
            <id>1</id>
            <id>2</id>
        </prev>
        <next>
            <id>1</id>
            <id>0</id>
        </next>
        <attributes>
            <attr name="condition">true</attr>
        </attributes>
    </command>
</flow>
dykan commented 11 years ago

tel me it is sababa

Schniz commented 11 years ago

@dykan, its Sababa! I fixed your indentation :rabbit:

dykan commented 11 years ago

because JAXB is not working chalak we chnged a little

<flow>
    <command id="1" type="bla" x="1" y="2">
        <prev>
            <id>1</id>
            <id>2</id>
        </prev>
        <next>
            <id>1</id>
            <id>2</id>
        </next>
        <attributes>
            <attr name="bla" value="something"/>
            <attr name="bla" value="something"/>
        </attributes>
    </command>
    <command id="1" type="bla" x="1" y="2">
        <prev>
            <id>1</id>
            <id>2</id>
        </prev>
        <next>
            <id>1</id>
            <id>0</id>
        </next>
        <attributes>
            <attr name="condition" value="true"/>
        </attributes>
    </command>
</flow>
Schniz commented 11 years ago

Creating the awesome XML from JS: chrome screenshot

Schniz commented 11 years ago

had a little bug ;) chrome fixed screenshot