I spent the last few days trying to load data into a XML file with a nested structure. My XML file is something like:
<?xml version="1.00" encoding="..."?>
<QML version="1.0" timestamp="...">
<HEADER>
<FROM>
<IDENTITY>
<name>user1</name>
<code>u001</code>
</IDENTITY>
<DOMAIN>
<name>user1</name>
<ipaddress>u001</ipaddress>
</DOMAIN>
</FROM>
<TO>
...here is identical to the from tag...
</TO>
</HEADER>
<RequestList>
<Application Action="LIST_CUSTOMERS">
<CUSTOMERS>
<code>c0001</code>
<fname>john</fname>
<lname>smith</lname>
</CUSTOMERS>
</Application>
</RequestList>
</QML>
I'm loading it into a dataset, add or edit the rows and save it as a xml file. The problem is that the structure of the new xml file isn't correct. It comes something like:
<QML version="1.0" timestamp="..."></QML>
<HEADER></HEADER>
<FROM></FROM>
<IDENTITY></IDENTITY>
<name>user1</name>
<code>u001</code>
<DOMAIN></DOMAIN>
<name>user1</name>
<ipaddress>u001</ipaddress>
...
It looses all the structure. I'm using the Nested property set to true for all the relations.
I can't believe that .NET cant use a xml file with a relational structure.
NetAngel
<?xml version="1.00" encoding="..."?>
<QML version="1.0" timestamp="...">
<HEADER>
<FROM>
<IDENTITY>
<name>user1</name>
<code>u001</code>
</IDENTITY>
<DOMAIN>
<name>user1</name>
<ipaddress>u001</ipaddress>
</DOMAIN>
</FROM>
<TO>
...here is identical to the from tag...
</TO>
</HEADER>
<RequestList>
<Application Action="LIST_CUSTOMERS">
<CUSTOMERS>
<code>c0001</code>
<fname>john</fname>
<lname>smith</lname>
</CUSTOMERS>
</Application>
</RequestList>
</QML>
I'm loading it into a dataset, add or edit the rows and save it as a xml file. The problem is that the structure of the new xml file isn't correct. It comes something like:
<QML version="1.0" timestamp="..."></QML>
<HEADER></HEADER>
<FROM></FROM>
<IDENTITY></IDENTITY>
<name>user1</name>
<code>u001</code>
<DOMAIN></DOMAIN>
<name>user1</name>
<ipaddress>u001</ipaddress>
...
It looses all the structure. I'm using the Nested property set to true for all the relations.
I can't believe that .NET cant use a xml file with a relational structure.
NetAngel