|
Subject:
|
Writing an XML document
|
|
Posted By:
|
Ben Horne
|
Post Date:
|
11/12/2003 4:45:50 PM
|
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/jjones/ITIP/Unit3/Assgn10/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
|
|
Reply By:
|
Ben Horne
|
Reply Date:
|
11/12/2003 4:59:42 PM
|
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: 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/jjones/ITIP/Unit3/Assgn10/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
|
|
Reply By:
|
pgtips
|
Reply Date:
|
11/13/2003 7:49:22 AM
|
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
|
|
Reply By:
|
Ben Horne
|
Reply Date:
|
11/13/2003 10:34:53 AM
|
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: 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
|
|
Reply By:
|
pgtips
|
Reply Date:
|
11/13/2003 11:22:31 AM
|
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
|