XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Alicia RobertsSubject: XSD Structure
Author: Alicia Roberts
Date: 31 Jan 2007 01:12 PM
Hello,
I'm createing XML Map using DTD to XSD. I uploaded the attached xsd file into Style Studio and the structure seems to upload backwards. The Tag is eInvoice and after that the Field names are shown instead of xmlns which is shown after the last field of the Tag. Is the structure incorrect or does it matter? Here is an example of the output:
<eInvoice Currency="MXN" InvoiceNumber="0070013890" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sat.gob.mx/cfd/2" xsi:schemaLocation="http://www.sat.gob.mx/cfd/2 file://c:\Program%20Files\SonicSoftware\Stylus%20Studio\bin\eFactura.xsd" dateTtime="20070130T110151" />

The output is suppose to look like this:
<eInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sat.gob.mx/cfd/2" xsi:schemaLocation="http://www.sat.gob.mx/cfd/2 file://c:\Program%20Files\SonicSoftware\Stylus%20Studio\bin\eFactura.xsd" Currency="MXN" InvoiceNumber="0070013890" dateTtime="20070130T110151" />


UnknowneFactura.xsd
XSD

Posttop
(Deleted User) Subject: XSD Structure
Author: (Deleted User)
Date: 31 Jan 2007 02:00 PM
Hi Alicia,
in XML the attributes don't have an order, so the two fragments you have written are equivalent.

Hope this helps,
Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.