473,396 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How do I create an XML document...

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.

Dec 6 '05 #1
2 1325
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

Dec 6 '05 #2
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)

Dec 6 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: obsidian8 | last post by:
Hi All, I have looked around for an answer to this question, but haven't found one as of yet. I'm trying to use javascript to dynamically create raido buttons. I am able to create them easily...
3
by: takarimasu | last post by:
How can i create an input object (text area,select) at runtime ? B.
3
by: Richard Fritzler | last post by:
I was given the task of designing a complete web based document prep system. In simplest terms (using a msword explanation) create a database of merge fields, and a library of templates. Allow the...
3
by: di | last post by:
I have a Access Database, and I would like to create a word document that (preferable would filter)links to ACCESS table or query. I would like to print the word document on the filtered record...
3
by: sloesch | last post by:
I am working with VS.net 2003, framework 1.1, developing with VB.net, and ASP.net, and I would like to know how you can create a dynamic hyperlink on the fly to a document stored in a SQL database?...
0
by: Niyazi | last post by:
Hi, I created application that store the data in SQL SERVER that reside on network. The client also use this application to access the resources provided with application. But is the client want...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
10
by: SM | last post by:
Hello I'm trying to create a multi dimensional array in JavaScript, but after some reading i still can't figure out how to apply it to my model. Here it is: I have a list A and for each item...
4
by: sirjohnofthewest | last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man. Hi guys, I frequently visit this site to get answers to my...
14
RMWChaos
by: RMWChaos | last post by:
Firebug is reporting "too much recursion" when I attempt to create a child element in a parent that doesn't exist yet. The script should automatically create the missing parent before going on to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.