Page 1 of 2

XML HELP.

PostPosted: Wed Nov 26, 2008 5:33 pm
by Qwert
Pretty graphics are not enough to make a successful map. You also need to think up good gameplay rules and write them down in an XML file. This tutorial will explain how to do that. Don't worry, you don't need any technical skills or special software. Just pay attention and fire up your favourite text editor, such as notepad.

I read very carefyl,and i need to know next step-how to notepad upload to be XML link for map.
I create acount in Fileden site,and now i dont know how,and what i need to do,to notepad become transform to XML link, can someon explane to me step by step.

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 5:42 pm
by gimil
Once you have finished you XML save your file with the file extension '.xml' (for example 'portugalmap.xml') that means that the file will be an XML file rather than a notepad file.

Once you have done that you should then upload in onto fileden using it's upload function. Once it is uploaded the site should then give you a URL for that file you have uploaded.

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 5:45 pm
by Qwert
can you give me some programs who have these xml save options.

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 5:50 pm
by gimil
qwert wrote:can you give me some programs who have these xml save options.


You don't need an XML save option, you type in '.xml' at the end of your file name.

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 5:59 pm
by blakebowling
gimil wrote:
qwert wrote:can you give me some programs who have these xml save options.


You don't need an XML save option, you type in '.xml' at the end of your file name.

If it's saving as "mapname.xml.txt"
Open up My Computer or My Documents, Tools (if you can't see tools at the top press alt), Folder Options, View tab, Uncheck "Hide extentions for known file types", then rename it and remove the .txt

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 6:01 pm
by Qwert
Hmm,im stupid.
Can you give me some example?
Gilligan tell me to use Microsoft word,but when i save these file,they have 20 options and i dont know what is what.
I use two option who contain xml in hes names,but when i try to upload into Fileden,they say that can not upload.

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 6:04 pm
by Gilligan
I think he's saying just type in .xml after the file name in Save.

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 6:05 pm
by Qwert
If it's saving as "mapname.xml.txt"
Open up My Computer or My Documents, Tools (if you can't see tools at the top press alt), Folder Options, View tab, Uncheck "Hide extentions for known file types", then rename it and remove the .txt

i check these and its all ready done.

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 6:16 pm
by Qwert
You don't need an XML save option, you type in '.xml' at the end of your file name.

If i understand you say that i save in notepad
something like:
Notepad-
Save as-
File Name=Code for Europe1914'.xml'(i try with that but still not working)
Save as type=(well i here only can take two option,its not posible to add nothing)
Encoding=(i have 4 option to use-ANSI-Unicode-Unicode big ensian-UTF-8)

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 6:25 pm
by blakebowling
qwert wrote:
You don't need an XML save option, you type in '.xml' at the end of your file name.

If i understand you say that i save in notepad
something like:
Notepad-
Save as-
File Name=Code for Europe1914'.xml'(i try with that but still not working)
Save as type=(well i here only can take two option,its not posible to add nothing)
Encoding=(i have 4 option to use-ANSI-Unicode-Unicode big ensian-UTF-8)

don't save as '.xml' just .xml

also, try saving without the spaces, some hosts don't like those.
EDIT: Try using Notepad ++

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 6:30 pm
by Qwert
don't save as '.xml' just .xml

also, try saving without the spaces, some hosts don't like those.
EDIT: Try using Notepad ++

Man its working :D
Amazing how its these so easy,and i only using notepad. :mrgreen:
Thanks,im not so smart and i need little more time to figure how these works.

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 6:52 pm
by blakebowling
qwert wrote:
don't save as '.xml' just .xml

also, try saving without the spaces, some hosts don't like those.
EDIT: Try using Notepad ++

Man its working :D
Amazing how its these so easy,and i only using notepad. :mrgreen:
Thanks,im not so smart and i need little more time to figure how these works.

Yes, Most of the time the simpler visual program has more technical features.

Re: XML HELP.

PostPosted: Wed Nov 26, 2008 7:33 pm
by oaktown
qwert wrote:Thanks, im not so smart and i need little more time to figure how these works.

Oh dear, this is definitely going in somebody's sig. ;)

Re: XML HELP.

PostPosted: Thu Nov 27, 2008 2:32 am
by yeti_c
qwert wrote:Gilligan tell me to use Microsoft word


Just as a point of reference....

NEVER USE WORD FOR ANYTHING LIKE XML OR HTML.

C.

Re: XML HELP.

PostPosted: Thu Nov 27, 2008 2:37 am
by cairnswk
yeti_c wrote:
qwert wrote:Gilligan tell me to use Microsoft word


Just as a point of reference....

NEVER USE WORD FOR ANYTHING LIKE XML OR HTML.

C.

Agreed....i use Note Tab Pro

Re: XML HELP.

PostPosted: Thu Nov 27, 2008 5:44 am
by oaktown
yeti_c wrote:NEVER USE WORD FOR ANYTHING LIKE XML OR HTML.

I'm a Mac user, so I was brought up to mistrust all things Microsoft. I use TextWrangler.

Re: XML HELP.

PostPosted: Thu Nov 27, 2008 6:28 am
by yeti_c
oaktown wrote:
yeti_c wrote:NEVER USE WORD FOR ANYTHING LIKE XML OR HTML.

I'm a Mac user, so I was brought up to mistrust all things Microsoft. I use TextWrangler.


In this case - Word adds in a load of useless shit at the top of the file - that makes it nonXML/HTML...

It sucks.

C.

Re: XML HELP.

PostPosted: Thu Nov 27, 2008 12:10 pm
by ZeakCytho
oaktown wrote:
yeti_c wrote:NEVER USE WORD FOR ANYTHING LIKE XML OR HTML.

I'm a Mac user, so I was brought up to mistrust all things Microsoft. I use TextWrangler.


*high five*

I just use TextEdit for my XML. Honestly, after it's been generated by WM's spreadsheet and had coordinates done by Jota's tool, there's nothing left to do but tweak coordinates, and that's easy enough to do in TextEdit.

Re: XML HELP.

PostPosted: Thu Nov 27, 2008 4:08 pm
by Qwert
line 915: </map> - Opening and ending tag mismatch: continent line 106 and map

line 915: </map> - Premature end of data in tag continent line 95

line 915: </map> - Premature end of data in tag continent line 94

line 915: </map> - Premature end of data in tag continent line 83

line 915: </map> - Premature end of data in tag continent line 82

line 915: </map> - Premature end of data in tag continent line 72

line 915: </map> - Premature end of data in tag continent line 71

line 915: </map> - Premature end of data in tag continent line 59

line 915: </map> - Premature end of data in tag map line 2

Summary: 9 errors and 0 warnings detected in code za europe 1914.txt

Can someon explane to me where is a problem?
--------------------------------------------------------------------------------

Re: XML HELP.

PostPosted: Thu Nov 27, 2008 4:10 pm
by yeti_c
qwert wrote:
line 915: </map> - Opening and ending tag mismatch: continent line 106 and map

line 915: </map> - Premature end of data in tag continent line 95

line 915: </map> - Premature end of data in tag continent line 94

line 915: </map> - Premature end of data in tag continent line 83

line 915: </map> - Premature end of data in tag continent line 82

line 915: </map> - Premature end of data in tag continent line 72

line 915: </map> - Premature end of data in tag continent line 71

line 915: </map> - Premature end of data in tag continent line 59

line 915: </map> - Premature end of data in tag map line 2

Summary: 9 errors and 0 warnings detected in code za europe 1914.txt

Can someon explane to me where is a problem?
--------------------------------------------------------------------------------


You'll need to post the XML if you want help.

C.

Re: XML HELP.

PostPosted: Thu Nov 27, 2008 5:39 pm
by Qwert
here code,i dont put objectives,because i first want to finish with coordinates.
Code: Select all
<?xml version="1.0"?>
<map>
<title>EUROPE 1914</title>
<smallwidth>630</smallwidth>
<smallheight>600</smallheight>
<largewidth>725</largewidth>
<largeheight>690</largeheight>
<filetype>png</filetype>
<continent>
<name>United Kingdom</name>
<bonus>2</bonus>
<components>
<territory>Ireland</territory>
<territory>London</territory>
<territory>Scotland</territory>
</components>
</continent>
<continent>
<name>German Empire</name>
<bonus>5</bonus>
<components>
<territory>Hanover</territory>
<territory>Berlin</territory>
<territory>Prussia</territory>
<territory>Westphalia</territory>
<territory>Bavaria</territory>
<territory>Silesia</territory>
</components>
</continent>
<continent>
<name>Austro Hungary</name>
<bonus>5</bonus>
<components>
<territory>Vienna</territory>
<territory>Bosnia</territory>
<territory>Bohemia</territory>
<territory>Galicia</territory>
<territory>Transylvania</territory>
<territory>Hungary</territory>
<territory>Asia</territory>
</components>
</continent>
<continent>
<name>Russian Empire</name>
<bonus>7</bonus>
<components>
<territory>Finland</territory>
<territory>Poland</territory>
<territory>Baltic Countries</territory>
<territory>Bessarabia</territory>
<territory>Belarus</territory>
<territory>Ukraine</territory>
<territory>Saint Petersburg</territory>
<territory>Moscow</territory>
<territory>Western Kazahstan</territory>
<territory>Caucasus</territory>
</components>
</continent>
<continent>
<name>Ottoman Empire</name>
<bonus>3</bonus>
<components>
<territory>Erzurum</territory>
<territory>Eastern Anatolia</territory>
<territory>Mesopotamia</territory>
<territory>Syria</territory>
<territory>Ankara</territory>
<territory>Smyrna</territory>
<territory>Constantinople</territory>
</components>
<continent>
<continent>
<name>Italian Kingdom</name>
<bonus>3</bonus>
<components>
<territory>Northern Italy</territory>
<territory>Rome</territory>
<territory>Naples</territory>
<territory>Sicily</territory>
<territory>Sardinia</territory>
</components>
<continent>
<continent>
<name>Balkans States</name>
<bonus>3</bonus>
<components>
<territory>Serbia</territory>
<territory>Montenegro</territory>
<territory>Greece</territory>
<territory>Romania</territory>
<territory>Sofia</territory>
<territory>Albania</territory>
</components>
<continent>
<continent>
<name>France</name>
<bonus>5</bonus>
<components>
<territory>Corsica</territory>
<territory>Southern France</territory>
<territory>Central France</territory>
<territory>Northern France</territory>
<territory>Belgium</territory>
<territory>Paris</territory>
</components>
<continent>
<continent>
<name>Cyprus British Base</name>
<bonus>1</bonus>
<components>
<territory>Cyprus British Base</territory>
</components>
</continent>
<territory>
<name>Scotland</name>
<borders>
<border>North Sea</border>
<border>Ireland</border>
<border>London</border>
</borders>
<coordinates>
<smallx>207</smallx>
<smally>539</smally>
<largex>119</largex>
<largey>204</largey>
</coordinates>
</territory>
<territory>
<name>London</name>
<borders>
<border>Northern France</border>
<border>Ireland</border>
<border>Scotland</border>
</borders>
<coordinates>
<smallx>338</smallx>
<smally>591</smally>
<largex>124</largex>
<largey>268</largey>
</coordinates>
<neutral>6</neutral>
</territory>
<territory>
<name>Paris</name>
<borders>
<border>Northern France</border>
<border>Central France</border>
</borders>
<coordinates>
<smallx>270</smallx>
<smally>540</smally>
<largex>163</largex>
<largey>376</largey>
</coordinates>
<neutral>3</neutral>
</territory>
<territory>
<name>Rome</name>
<borders>
<border>Northern Italy</border>
<border>Naples</border>
</borders>
<coordinates>
<smallx>273</smallx>
<smally>596</smally>
<largex>247</largex>
<largey>479</largey>
</coordinates>
<neutral>3</neutral>
</territory>
<territory>
<name>Berlin</name>
<borders>
<border>Hanover</border>
<border>Westphalia</border>
<border>Bavaria</border>
<border>Bohemia</border>
<border>Silesia</border>
<border>Prussia</border>
</borders>
<coordinates>
<smallx>81</smallx>
<smally>176</smally>
<largex>276</largex>
<largey>296</largey>
</coordinates>
<neutral>3</neutral>
</territory>
<territory>
<name>Vienna</name>
<borders>
<border>Northern Italy</border>
<border>Bosnia</border>
<border>Hungary</border>
<border>Bohemia</border>
<border>Bavaria</border>
</borders>
<coordinates>
<smallx>224</smallx>
<smally>127</smally>
<largex>246</largex>
<largey>137</largey>
</coordinates>
<neutral>3</neutral>
</territory>
<territory>
<name>Sofia</name>
<borders>
<border>Constantinople</border>
<border>Romania</border>
<border>Serbia</border>
<border>Greece</border>
</borders>
<coordinates>
<smallx>173</smallx>
<smally>366</smally>
<largex>191</largex>
<largey>401</largey>
</coordinates>
<neutral>3</neutral>
</territory>
<territory>
<name>Constantinople</name>
<borders>
<border>Sofia</border>
<border>Smyrna</border>
<border>Ankara</border>
</borders>
<coordinates>
<smallx>332</smallx>
<smally>410</smally>
<largex>365</largex>
<largey>450</largey>
</coordinates>
<neutral>3</neutral>
</territory>
<territory>
<name>Saint Petersburg</name>
<borders>
<border>Finland</border>
<border>Baltic Countries</border>
<border>Belarus</border>
<border>Moscow</border>
</borders>
<coordinates>
<smallx>458</smallx>
<smally>456</smally>
<largex>503</largex>
<largey>499</largey>
</coordinates>
<neutral>3</neutral>
</territory>
<territory>
<name>Finland</name>
<borders>
<border>Saint Petersburg</border>
<border>Baltic Sea</border>
</borders>
<coordinates>
<smallx>473</smallx>
<smally>295</smally>
<largex>519</largex>
<largey>321</largey>
</coordinates>
</territory>
<territory>
<name>Baltic Countries</name>
<borders>
<border>Saint Petersburg</border>
<border>Belarus</border>
<border>Poland</border>
<border>Prussia</border>
</borders>
<coordinates>
<smallx>559</smallx>
<smally>302</smally>
<largex>614</largex>
<largey>331</largey>
</coordinates>
</territory>
<territory>
<name>Ukraine</name>
<borders>
<border>Bessarabia</border>
<border>Galicia</border>
<border>Poland</border>
<border>Belarus</border>
<border>Moscow</border>
<border>Black Sea</border>
<border>Romania</border>
</borders>
<coordinates>
<smallx>89</smallx>
<smally>326</smally>
<largex>100</largex>
<largey>355</largey>
</coordinates>
</territory>
<territory>
<name>Hungary</name>
<borders>
<border>Bosnia</border>
<border>Vienna</border>
<border>Bohemia</border>
<border>Galicia</border>
<border>Transylvania</border>
<border>Serbia</border>
</borders>
<coordinates>
<smallx>28</smallx>
<smally>307</smally>
<largex>30</largex>
<largey>336</largey>
</coordinates>
</territory>
<territory>
<name>Corsica</name>
<borders>
<border>Southern France</border>
<border>Sardinia</border>
</borders>
<coordinates>
<smallx>52</smallx>
<smally>345</smally>
<largex>194</largex>
<largey>478</largey>
</coordinates>
</territory>
<territory>
<name>Bavaria</name>
<borders>
<border>Vienna</border>
<border>Bohemia</border>
<border>Berlin</border>
<border>Westphalia</border>
<border>Northern France</border>
</borders>
<coordinates>
<smallx>34</smallx>
<smally>399</smally>
<largex>38</largex>
<largey>435</largey>
</coordinates>
</territory>
<territory>
<name>Westphalia</name>
<borders>
<border>Belgium</border>
<border>Northern France</border>
<border>Bavaria</border>
<border>Berlin</border>
<border>Hanover</border>
</borders>
<coordinates>
<smallx>124</smallx>
<smally>403</smally>
<largex>126</largex>
<largey>440</largey>
</coordinates>
</territory>
<territory>
<name>Galicia</name>
<borders>
<border>Transylvania</border>
<border>Hungary</border>
<border>Bohemia</border>
<border>Silesia</border>
<border>Poland</border>
<border>Ukraine</border>
<border>Bessarabia</border>
<border>Romania</border>
</borders>
<coordinates>
<smallx>194</smallx>
<smally>426</smally>
<largex>213</largex>
<largey>469</largey>
</coordinates>
</territory>
<territory>
<name>Bessarabia</name>
<borders>
<border>Ukraine</border>
<border>Romania</border>
</borders>
<coordinates>
<smallx>401</smallx>
<smally>504</smally>
<largex>435</largex>
<largey>552</largey>
</coordinates>
</territory>
<territory>
<name>Hanover</name>
<borders>
<border>North Sea</border>
<border>Westphalia</border>
<border>Berlin</border>
</borders>
<coordinates>
<smallx>485</smallx>
<smally>517</smally>
<largex>531</largex>
<largey>565</largey>
</coordinates>
</territory>
<territory>
<name>Sardinia</name>
<borders>
<border>Corsica</border>
<border>Sicily</border>
</borders>
<coordinates>
<smallx>516</smallx>
<smally>497</smally>
<largex>569</largex>
<largey>544</largey>
</coordinates>
</territory>
<territory>
<name>Sicily</name>
<borders>
<border>Sardinia</border>
<border>Naples</border>
</borders>
<coordinates>
<smallx>524</smallx>
<smally>466</smally>
<largex>579</largex>
<largey>510</largey>
</coordinates>
</territory>
<territory>
<name>Naples</name>
<borders>
<border>Rome</border>
<border>Sicily</border>
<border>Mediterannean Sea</border>
</borders>
<coordinates>
<smallx>543</smallx>
<smally>401</smally>
<largex>597</largex>
<largey>435</largey>
</coordinates>
</territory>
<territory>
<name>Mesopotamia</name>
<borders>
<border>Syria</border>
<border>Eastern Anatolia</border>
</borders>
<coordinates>
<smallx>594</smallx>
<smally>394</smally>
<largex>656</largex>
<largey>432</largey>
</coordinates>
</territory>
<territory>
<name>Syria</name>
<borders>
<border>Mesopotamia</border>
<border>Eastern Anatolia</border>
<border>Smyrna</border>
</borders>
<coordinates>
<smallx>606</smallx>
<smally>361</smally>
<largex>666</largex>
<largey>394</largey>
</coordinates>
</territory>
<territory>
<name>Greece</name>
<borders>
<border>Cyprus British Base</border>
<border>Sofia</border>
<border>Mediterannean Sea</border>
<border>Serbia</border>
<border>Albania</border>
</borders>
<coordinates>
<smallx>592</smallx>
<smally>329</smally>
<largex>649</largex>
<largey>360</largey>
</coordinates>
</territory>
<territory>
<name>Mediterannean Sea</name>
<borders>
<border>Naples</border>
<border>Greece</border>
</borders>
<coordinates>
<smallx>539</smallx>
<smally>362</smally>
<largex>593</largex>
<largey>396</largey>
</coordinates>
</territory>
<territory>
<name>Cyprus British Base</name>
<borders>
<border>Greece</border>
</borders>
<coordinates>
<smallx>496</smallx>
<smally>423</smally>
<largex>547</largex>
<largey>464</largey>
</coordinates>
</territory>
<territory>
<name>Southern France</name>
<borders>
<border>Corsica</border>
<border>Bay of Biscay</border>
<border>Central France</border>
<border>Northern Italy</border>
</borders>
<coordinates>
<smallx>525</smallx>
<smally>383</smally>
<largex>110</largex>
<largey>443</largey>
</coordinates>
</territory>
<territory>
<name>Central France</name>
<borders>
<border>Southern France</border>
<border>Northern France</border>
<border>Paris</border>
</borders>
<coordinates>
<smallx>494</smallx>
<smally>348</smally>
<largex>154</largex>
<largey>407</largey>
</coordinates>
</territory>
<territory>
<name>Northern France</name>
<borders>
<border>Bay of Biscay</border>
<border>London</border>
<border>Paris</border>
<border>Belgium</border>
<border>Central France</border>
<border>Bavaria</border>
<border>Westphalia</border>
</borders>
<coordinates>
<smallx>465</smallx>
<smally>403</smally>
<largex>511</largex>
<largey>436</largey>
</coordinates>
</territory>
<territory>
<name>Belgium</name>
<borders>
<border>Northern France</border>
<border>Westphalia</border>
</borders>
<coordinates>
<smallx>495</smallx>
<smally>320</smally>
<largex>102</largex>
<largey>369</largey>
</coordinates>
</territory>
<territory>
<name>Ireland</name>
<borders>
<border>London</border>
<border>Scotland</border>
</borders>
<coordinates>
<smallx>465</smallx>
<smally>370</smally>
<largex>61</largex>
<largey>257</largey>
</coordinates>
</territory>
<territory>
<name>Poland</name>
<borders>
<border>Galicia</border>
<border>Ukraine</border>
<border>Belarus</border>
<border>Baltic Countries</border>
<border>Prussia</border>
<border>Silesia</border>
</borders>
<coordinates>
<smallx>421</smallx>
<smally>329</smally>
<largex>463</largex>
<largey>362</largey>
</coordinates>
</territory>
<territory>
<name>Smyrna</name>
<borders>
<border>Syria</border>
<border>Eastern Anatolia</border>
<border>Erzurum</border>
<border>Ankara</border>
<border>Constantinople</border>
</borders>
<coordinates>
<smallx>411</smallx>
<smally>295</smally>
<largex>453</largex>
<largey>328</largey>
</coordinates>
</territory>
<territory>
<name>North Sea</name>
<borders>
<border>Scotland</border>
<border>Hanover</border>
</borders>
<coordinates>
<smallx>521</smallx>
<smally>253</smally>
<largex>576</largex>
<largey>274</largey>
</coordinates>
</territory>
<territory>
<name>Western Kazahstan</name>
<borders>
<border>Moscow</border>
</borders>
<coordinates>
<smallx>369</smallx>
<smally>358</smally>
<largex>406</largex>
<largey>390</largey>
</coordinates>
</territory>
<territory>
<name>Black Sea</name>
<borders>
<border>Ukraine</border>
<border>Ankara</border>
</borders>
<coordinates>
<smallx>343</smallx>
<smally>369</smally>
<largex>379</largex>
<largey>404</largey>
</coordinates>
</territory>
<territory>
<name>Baltic Sea</name>
<borders>
<border>Prussia</border>
<border>Finland</border>
</borders>
<coordinates>
<smallx>369</smallx>
<smally>407</smally>
<largex>406</largex>
<largey>446</largey>
</coordinates>
</territory>
<territory>
<name>Moscow</name>
<borders>
<border>Saint Petersburg</border>
<border>Belarus</border>
<border>Ukraine</border>
<border>Caucasus</border>
<border>Western Kazahstan</border>
</borders>
<coordinates>
<smallx>357</smallx>
<smally>301</smally>
<largex>393</largex>
<largey>330</largey>
</coordinates>
</territory>
<territory>
<name>Ankara</name>
<borders>
<border>Black Sea</border>
<border>Constantinople</border>
<border>Smyrna</border>
<border>Erzurum</border>
</borders>
<coordinates>
<smallx>385</smallx>
<smally>266</smally>
<largex>421</largex>
<largey>289</largey>
</coordinates>
</territory>
<territory>
<name>Eastern Anatolia</name>
<borders>
<border>Mesopotamia</border>
<border>Syria</border>
<border>Smyrna</border>
<border>Erzurum</border>
</borders>
<coordinates>
<smallx>324</smallx>
<smally>264</smally>
<largex>356</largex>
<largey>288</largey>
</coordinates>
</territory>
<territory>
<name>Erzurum</name>
<borders>
<border>Ankara</border>
<border>Smyrna</border>
<border>Eastern Anatolia</border>
<border>Caucasus</border>
</borders>
<coordinates>
<smallx>317</smallx>
<smally>299</smally>
<largex>349</largex>
<largey>327</largey>
</coordinates>
</territory>
<territory>
<name>Caucasus</name>
<borders>
<border>Erzurum</border>
<border>Moscow</border>
</borders>
<coordinates>
<smallx>296</smallx>
<smally>268</smally>
<largex>325</largex>
<largey>293</largey>
</coordinates>
</territory>
<territory>
<name>Silesia</name>
<borders>
<border>Berlin</border>
<border>Prussia</border>
<border>Poland</border>
<border>Galicia</border>
<border>Bohemia</border>
</borders>
<coordinates>
<smallx>264</smallx>
<smally>397</smally>
<largex>293</largex>
<largey>434</largey>
</coordinates>
</territory>
<territory>
<name>Bosnia</name>
<borders>
<border>Vienna</border>
<border>Hungary</border>
<border>Serbia</border>
<border>Montenegro</border>
</borders>
<coordinates>
<smallx>247</smallx>
<smally>270</smally>
<largex>272</largex>
<largey>294</largey>
</coordinates>
</territory>
<territory>
<name>Montenegro</name>
<borders>
<border>Serbia</border>
<border>Bosnia</border>
<border>Albania</border>
</borders>
<coordinates>
<smallx>273</smallx>
<smally>248</smally>
<largex>301</largex>
<largey>269</largey>
</coordinates>
</territory>
<territory>
<name>Serbia</name>
<borders>
<border>Hungary</border>
<border>Bosnia</border>
<border>Transylvania</border>
<border>Romania</border>
<border>Sofia</border>
<border>Greece</border>
<border>Albania</border>
</borders>
<coordinates>
<smallx>235</smallx>
<smally>243</smally>
<largex>262</largex>
<largey>261</largey>
</coordinates>
</territory>
<territory>
<name>Bohemia</name>
<borders>
<border>Vienna</border>
<border>Bavaria</border>
<border>Berlin</border>
<border>Silesia</border>
<border>Galicia</border>
<border>Hungary</border>
</borders>
<coordinates>
<smallx>40</smallx>
<smally>523</smally>
<largex>43</largex>
<largey>572</largey>
</coordinates>
</territory>
<territory>
<name>Romania</name>
<borders>
<border>Bessarabia</border>
<border>Ukraine</border>
<border>Galicia</border>
<border>Transylvania</border>
<border>Serbia</border>
<border>Sofia</border>
</borders>
<coordinates>
<smallx>27</smallx>
<smally>567</smally>
<largex>30</largex>
<largey>622</largey>
</coordinates>
</territory>
<territory>
<name>Albania</name>
<borders>
<border>Serbia</border>
<border>Montenegro</border>
<border>Greece</border>
</borders>
<coordinates>
<smallx>37</smallx>
<smally>593</smally>
<largex>40</largex>
<largey>650</largey>
</coordinates>
</territory>
<territory>
<name>Belarus</name>
<borders>
<border>Poland</border>
<border>Baltic Countries</border>
<border>Saint Petersburg</border>
<border>Moscow</border>
<border>Ukraine</border>
</borders>
<coordinates>
<smallx>215</smallx>
<smally>340</smally>
<largex>237</largex>
<largey>372</largey>
</coordinates>
</territory>
<territory>
<name>Transylvania</name>
<borders>
<border>Serbia</border>
<border>Hungary</border>
<border>Galicia</border>
<border>Romania</border>
</borders>
<coordinates>
<smallx>182</smallx>
<smally>293</smally>
<largex>383</largex>
<largey>408</largey>
</coordinates>
</territory>
<territory>
<name>Northern Italy</name>
<borders>
<border>Vienna</border>
<border>Rome</border>
<border>Southern France</border>
</borders>
<coordinates>
<smallx>77</smallx>
<smally>256</smally>
<largex>230</largex>
<largey>441</largey>
</coordinates>
</territory>
<territory>
<name>Bay of Biscay</name>
<borders>
<border>Northern France</border>
<border>Southern France</border>
</borders>
<coordinates>
<smallx>180</smallx>
<smally>245</smally>
<largex>62</largex>
<largey>404</largey>
</coordinates>
</territory>
</map>

Re: XML HELP.

PostPosted: Thu Nov 27, 2008 5:41 pm
by Gilligan
yeti_c wrote:
oaktown wrote:
yeti_c wrote:NEVER USE WORD FOR ANYTHING LIKE XML OR HTML.

I'm a Mac user, so I was brought up to mistrust all things Microsoft. I use TextWrangler.


In this case - Word adds in a load of useless shit at the top of the file - that makes it nonXML/HTML...

It sucks.

C.


I didn't say use Word to generate the XML, he couldn't save it in Notepad so I just told him to save it in Word, not actually generate it.

Re: XML HELP.

PostPosted: Fri Nov 28, 2008 12:56 am
by oaktown
It looks to me like you're not closing your continent tags...

<continent>
<name>France</name>
<bonus>5</bonus>
<components>
<territory>Corsica</territory>
<territory>Southern France</territory>
<territory>Central France</territory>
<territory>Northern France</territory>
<territory>Belgium</territory>
<territory>Paris</territory>
</components>
<continent>

That last <continent> should be </continent>

Re: XML HELP.

PostPosted: Fri Nov 28, 2008 3:53 am
by yeti_c
Gilligan wrote:
yeti_c wrote:
oaktown wrote:
yeti_c wrote:NEVER USE WORD FOR ANYTHING LIKE XML OR HTML.

I'm a Mac user, so I was brought up to mistrust all things Microsoft. I use TextWrangler.


In this case - Word adds in a load of useless shit at the top of the file - that makes it nonXML/HTML...

It sucks.

C.


I didn't say use Word to generate the XML, he couldn't save it in Notepad so I just told him to save it in Word, not actually generate it.


Word will still f*ck with it.

C.

Re: XML HELP.

PostPosted: Fri Nov 28, 2008 3:55 am
by yeti_c
oaktown wrote:It looks to me like you're not closing your continent tags...

<continent>
<name>France</name>
<bonus>5</bonus>
<components>
<territory>Corsica</territory>
<territory>Southern France</territory>
<territory>Central France</territory>
<territory>Northern France</territory>
<territory>Belgium</territory>
<territory>Paris</territory>
</components>
<continent>

That last <continent> should be </continent>


Looks like there are 4 of them that aren't closed properly...

Code: Select all
<continent>
<name>Ottoman Empire</name>
<bonus>3</bonus>
<components>
<territory>Erzurum</territory>
<territory>Eastern Anatolia</territory>
<territory>Mesopotamia</territory>
<territory>Syria</territory>
<territory>Ankara</territory>
<territory>Smyrna</territory>
<territory>Constantinople</territory>
</components>
<continent>

<continent>
<name>Italian Kingdom</name>
<bonus>3</bonus>
<components>
<territory>Northern Italy</territory>
<territory>Rome</territory>
<territory>Naples</territory>
<territory>Sicily</territory>
<territory>Sardinia</territory>
</components>
<continent>

<continent>
<name>Balkans States</name>
<bonus>3</bonus>
<components>
<territory>Serbia</territory>
<territory>Montenegro</territory>
<territory>Greece</territory>
<territory>Romania</territory>
<territory>Sofia</territory>
<territory>Albania</territory>
</components>
<continent>

<continent>
<name>France</name>
<bonus>5</bonus>
<components>
<territory>Corsica</territory>
<territory>Southern France</territory>
<territory>Central France</territory>
<territory>Northern France</territory>
<territory>Belgium</territory>
<territory>Paris</territory>
</components>
<continent>


C.