Hi can anyone show me how I can read xml tags with their values with SimpleXML btw. I am building an android app.
I need to get all tags and values that are inside the root element:
<RootElement>
   <UnknownTab>UnkownValue</UnkownTab>
   <AnotherUnknownTab>UnkownValue</AnotherUnknownTab>
</RootElement>
The number of elements inside the RootElement is also unkown and can be different everytime.
UPDATE:
I am already using SimpleXml for every other serialization I am doing so i don't want to use another XML-parsing tool. The question is how to do this with SimpleXml and not how to serialize a xml.
UPDATE 2: I have reviewed the XML (its a bit complex) the definition is the following:
xsd-definition:
<element-sequence> 
   <element name="actualName" ..../>
   <element name="actualName" ..../>
   <element name="actualName" ..../>
   .
   .
   .
</element-sequence>
the size of element-sequence is variable and the tags of the elements inside the RootElement are the actualNames
<RootElement>
   <actualName>UnkownValue</actualName>
   <actualName>UnkownValue</actualName>
   .
   .
   .
</RootElement>
Is there any way to serialize this, if possible with SimpleXML
 
     
     
    