Freshman
Registered User.
- Local time
- Today, 09:10
- Joined
- May 21, 2010
- Messages
- 437
Hi all,
I need to export a Query to XML to be used in a PhP script.
However the XML output format differ from the example I have.
The example is far more simplistic so I need to get rid of the extra stuff.
I assume that I would need to use a schema to correct this but I've been unable to get the syntax correct.
Current Output
Output I need:
Schema I tried to use (xsl file type)
Can someone help with this please?
Thanks a lot
Pierre
I need to export a Query to XML to be used in a PhP script.
However the XML output format differ from the example I have.
The example is far more simplistic so I need to get rid of the extra stuff.
I assume that I would need to use a schema to correct this but I've been unable to get the syntax correct.
Current Output
Code:
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata" generated="2015-06-25T07:02:27">
<_x0031_23>
<password>abc</password>
</_x0031_23>
</dataroot>
Code:
<?xml version="1.0" encoding="UTF-8"?>
<user>
<password>abc</password>
</user>
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/1999/XSL/Transform" xmlns:od="urn:schemas-microsoft-com:officedata">
<user>
<password>abc</password>
</user>
</xsd:schema>
Thanks a lot
Pierre