Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2003, 05:45 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default Writing an XML document

Hi all,

I have a bit of a question. I need to write an XML file detailing two or more states, each state with two or more counties as well as each county with two or more cities. I already have the DTD file laid out like this:

<!ELEMENT usa(state+)>

<!ELEMENT state(stName, stCapital, stPopulation, stArea, StGovernor,stCounties)>

<!ELEMENT stName (#PCDATA)>
<!ELEMENT stCapital (#PCDATA)>
<!ELEMENT stPopulation (#PCDATA)>
<!ELEMENT stArea (#PCDATA)>
<!ELEMENT stGovenor (#PCDATA)>

<!ELEMENT stCounties(county+)>

<!ELEMENT county(coName,coSeat,coPopulation)>

<!ELEMENT coName (#PCDATA)>
<!ELEMENT coSeat (#PCDATA)>
<!ELEMENT coPopulation (#PCDATA)>

This is my first time writing anything strictly in XML format so how should I go about this? Are there any freeware XML editors I should know about?

If any of you need to, you can go to http://matcmadison.edu/faculty/jjone...0/A10descr.htm

Ben
Madison Area Technical College student
-------------------------
I am one of those people that you call "Microsoft Access Freaks". I'm addicted to Access
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes. I\'m confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age
 
Old November 12th, 2003, 05:59 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

GOT IT!!!! I opened Visual InterDev 6 and found an XML file reference there so I'm using that program to write the XML file

Quote:
quote:Originally posted by majora
 Hi all,

I have a bit of a question. I need to write an XML file detailing two or more states, each state with two or more counties as well as each county with two or more cities. I already have the DTD file laid out like this:

<!ELEMENT usa(state+)>

<!ELEMENT state(stName, stCapital, stPopulation, stArea, StGovernor,stCounties)>

<!ELEMENT stName (#PCDATA)>
<!ELEMENT stCapital (#PCDATA)>
<!ELEMENT stPopulation (#PCDATA)>
<!ELEMENT stArea (#PCDATA)>
<!ELEMENT stGovenor (#PCDATA)>

<!ELEMENT stCounties(county+)>

<!ELEMENT county(coName,coSeat,coPopulation)>

<!ELEMENT coName (#PCDATA)>
<!ELEMENT coSeat (#PCDATA)>
<!ELEMENT coPopulation (#PCDATA)>

This is my first time writing anything strictly in XML format so how should I go about this? Are there any freeware XML editors I should know about?

If any of you need to, you can go to http://matcmadison.edu/faculty/jjone...0/A10descr.htm

Ben
Madison Area Technical College student
-------------------------
I am one of those people that you call "Microsoft Access Freaks". I'm addicted to Access
Ben
Madison Area Technical College student
-------------------------
I am one of those people that you call "Microsoft Access Freaks". I'm addicted to Access
 
Old November 13th, 2003, 08:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Ben,

You could do a lot worse than the free editor Cooktop. See http://xmlcooktop.com

XMLSpy is v good, but unfortunately not free.

rgds
Phil
 
Old November 13th, 2003, 11:34 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Hi Phil,

Thanks for the heads up about Cooktop. However, wouldn't Visual InterDev 6 be just as good for editing XML documents? I mean, I know from earlier experiences that Visual InterDev provides an XML document template from which to start with. I have not had any problems writing XML files with VI 6 so I don't see why I shouldn't be able to use that.

Quote:
quote:Originally posted by pgtips
 Hi Ben,

You could do a lot worse than the free editor Cooktop. See http://xmlcooktop.com

XMLSpy is v good, but unfortunately not free.

rgds
Phil
Ben
Madison Area Technical College student
-------------------------
I am one of those people that you call "Microsoft Access Freaks". I'm addicted to Access
 
Old November 13th, 2003, 12:22 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Ben, yes use Interdev if you like it's fine. Cooktop will become more useful if you get into stuff like XSLT and XPath - its got a very handy XPath tester.

rgds
Phil





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating XML doc ; writing string(xml format) into KamalRaturi XML 5 May 28th, 2008 05:51 AM
writing into xml file jerryjohn XML 1 August 18th, 2006 02:40 AM
writing to am xml file MOU Classic ASP XML 0 July 6th, 2005 07:38 AM
Reading from a xml file and writing to another billy_bob_the_3rd XML 5 April 29th, 2005 01:40 PM
Tomcat 5, XML and writing your own classloader lawrencewinkler BOOK: Professional Apache Tomcat 0 September 28th, 2004 03:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.