Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > How do I create an XML document...

Reply
Thread Tools

How do I create an XML document...

 
 
WideBoy
Guest
Posts: n/a
 
      12-06-2005
Hi

I have access to a large xml schema namespace which has complicated
references, structures, etc for all sorts of things. Amongst which are
personDetails, and their UK postal address. What I would like to do is
see what sort of instance document I need to create to test it's
validity against this complex schema. The xml schema does not have a
root node/element, perhaps this is because it is purely a namespace? -
I don't know.

My question is what is the easiest way of generating a simple XML
document with just these two areas (personDetails and UKAddress) from
such a huge namespace/schema beast?

I have access to Altova's XMLSpy - which I use to manage this namespace
and associated xml schemas. I just figure out how to create a test
document
with some dummy data which would validate against this huge beast (when
printed the schema spans more than 300 pages A4).

Any comments, ideas, would be very welcome.

 
Reply With Quote
 
 
 
 
Stylus Studio
Guest
Posts: n/a
 
      12-06-2005
Hi WideBoy,

Try loading your Schema in the Stylus Studio XML Schema Editor:
http://www.stylusstudio.com/xml_schema_editor.html

To generate an XML document for just the personDetails and UKAddress
complexTypes, just select the node, right click one of them, and select
View XML Sample and save it. This is explained in detail here:
http://www.stylusstudio.com/xml_generator.html

I think that one of the differences between spy's xml schema instance
document generator is that it needs a document node (i.e. what you are
calling the "root node") to work. By contrast, the stylus studio xml
instance document generator works on any element / complexType. (I
think this is probably why it's not working for you right now).

Sincerely,
The Stylus Studio Team
http://www.stylusstudio.com

 
Reply With Quote
 
 
 
 
WideBoy
Guest
Posts: n/a
 
      12-06-2005
Thanks for your reply, I shall certainly check out stylusstudio.
However, I have a gut feeling that there might be a XSL-type solution
to this problem.

If some one can recommend something along these lines and give me a bit
of a leg up with the XSL, I'm sure I would be in a position to take it
on and develop it as a full blown solution. In the first instance I'm
just looking for something that gives me the basic document structure
so that I can manually fill in the data. Ideally, what I would like is
something like StylusStudio I guess especially if this also provides
some random valid data for each element of the document.

Regards,

Naran (aka Wideboy)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create xml with elementtree ET and xml escaping nenad.cikic@gmail.com Python 4 12-15-2012 09:31 AM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
Print XML parsing to JspWriter (out) Class org.xml.sax.helpers.NewInstance can not access a member of class javax.xml.parsers.SAXParser with modifiers "protected" Per Magnus L?vold Java 0 11-15-2004 02:27 PM
What XML technologies to learn first for "XML Processing" and "XML Mapping"? Bomb Diggy Java 0 07-28-2004 07:26 AM
using XML libs to create XML? where's the benefit? tom Java 0 07-22-2003 07:26 PM



Advertisments