<busking_denmark><busking_dgermany><busking_greece><busking_netherlands><busking_uk><busking_denmark Place="Copenhagen" Description="Copenhagen is a very nice city with very big pedestrian streets that are perfect for busking. The best pedestrian shopping area suitable for busking is called 'Stroget'.In Danemark it is actually prohibited busking unless you have a permission but not punished with a fine, until you disobey direct orders from the police. Best time to busk daytime." Lat="55.6792" Lng="12.5811" Level="good" /><busking_germany Place="Karlsruhe" Description="The city of Karlsruhe is not very known among buskers but is very promising, as its main shop street is very crowded and full of life (called Kaiserstrase). Best time to busk 12.00- 18.00." Lat="49.0095" Lng="8.39917" Level="best" /><busking_germany Place="Heidelberg" Description="Heidelberg is one of the most known German cities and a very touristic place with hunderds of visitors every day. The best place to busk is the shop pedestrian street called 'Hauptstrasse'. To get there just take a bus to Bismarckplatz. There are a lot of buskers on this street and so the competition is high. Be careful cause busking is allowded only on specific locations (not too many). Best time to busk 12.00- 18.00, especially on Saturdays" Lat="49.4105" Lng="8.69813" Level="very good" /><busking_germany Place="Cologne" Description="Cologne is a very big city, full of tourists. A good place to busk is in front of the big church in Dom/Hbf main train station. An alternative is to busk in the nearby shop streets called 'Hope strasse' and 'Chlildergasse strasse'. The competition is very high as there are a lot of other buskers . Best time to busk 12.00- 18.00" Lat="50.9408" Lng="6.95663" Level="very good" /><busking_germany Place="Stuttgart" Description="Stuttgart is a big industrial city with a very nice city center. A real jewlery for buskers as people really seams to apreciate music and support street performers. The best place for busking is the main shopping street called 'Konigstrasse' and it start right next to the south-weast exit of the main train station. Best time to busk 12.00- 18.00" Lat="48.7771" Lng="9.17708" Level="best" /><busking_germany Place="Frankfurt" Description="Frankfurt is a city from outer space with very high skyline buildings. Its main shopping street is cail 'Zeil strasse' and is full of people and ideal for busking. Best time to busk 12.00- 18.00" Lat="50.1143" Lng="8.68175" Level="best" /><busking_germany Place="Munich" Description="Munich is the typical big rich city model. The main shopping streets where is posible to busk are 'Neuhauserstrasse' and 'Kaufingerstrasse'.One of the best times to busk in Munich is during 'Oktoberfest' festival which is very famous worldwide. If you decide to busk during this event be carefull cause it is illegal (the money you can gane are very good !!!). If you decide to do it try move a lot and avoid the most center places of the city. Generally best time to busk 12.00- 18.00" Lat="48.1386" Lng="11.5685" Level="very good" /><busking_germany Place="Bonn" Description="Bonn is famous city. Unfortunately we don't have more information about this city at the moment. Although a good spot to busk is near the main train station.(No specific location on the map)" Lat="50.7327" Lng="7.09631" Level="good" /><busking_germany Place="Dresden" Description="Good city to busk but too many buskers and street performers here. So the competition is real high. Also the rules for buskers are quite strict (no more than 3 people bands). Best pitch to busk --> unknown.Best time to busk 12.00- 18.00.(No specific place on the map)" Lat="51.051" Lng="13.7336" Level="good" /><busking_germany Place="Trier" Description="Very beautiful city and a busker\\'s paradise.Best place to busk is behind the 'Kornmarkt' , on 'Fleichstrasse', just in front of the Kaufhof Gallerie.Best time to busk 12.00- 18.00" Lat="49.7558" Lng="6.63916" Level="very good" /><busking_germany Place="Berlin" Description="Berlin is a magical big city very good for busking and street performing in general. Is believed that the best places to busk are the metro station like Alexanderplatz and Postdamer Platz stations. A lot of people also busk within the metro trains even if it's not clear if it is strictly legal. Generally friendly atmosphere and no problems with police and busking permissions.Best time to busk daytime." Lat="52.5218" Lng="13.4106" Level="best" /><busking_greece <br />
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
This is what i get and the problem is at the last command <br /> when it comes to the “<” symbol !
this line is probably the error causer, in that case. Check that $row3[‘Place’] exists, and that it’s not slipping any strange XML-breaking characters through the parseToXML function.
If PHP borked somehow in running parseToXML, it would error before echoing (inside-out stack processing)… tbh, the error he’s seeing doesnt sound like a PHP error, which indicates that it SHOULD have output the whole thing, flawed or not… (For the OP: PHP errors are generally single-line, and less verbose.)
I must say I dont understand the code as generated; It would generate an XML structure like…
PS: Your “end XML” section is backwards. You need to close UK first, then netherlands, etc etc. (This may be why the page is coming out as improperly formatted - closing the tags in the wrong order)
PPS: Your ‘Begin XML’ section misspells the germany tag.
The thing that I am trying to do here is to transform some data from a database that I have created to XML format and I am calling the attribute fields.
$dom = new DOMDocument('1.0', 'iso-8859-1');
$element = $dom->createElement('test', 'This is the root element!');
// We insert the new element as root (child of the document)
$dom->appendChild($element);
// See the tutorial for an example of adding attributes
echo $dom->saveXML();