p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > XML > XML
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XML General XML discussions.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 9th, 2006, 04:56 AM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to g000we Send a message via Yahoo to g000we
Default xml invalid top level from ASP write XML(solution)

Thought it would be wise to log the fix here for internet searchers.

This is quite an obvious bug fix but it is annoying and took me ages.

In ASP when you response.write out XML (after setting the response.contenttype="text/xml") then it can error with the typical error of "xml invalid top level" when you try to add additional non-xml text!

Find where you write normal test out onto the screen. I found my webservice was firing back text when writing out the response in xml with some status information (not in xml format!).
I couldn't have added the status info into the xml as I was responsing the xml response from the webservice!

Im sure there's an XML guru out there who could do both like write out a sub level xml response with the status info in it! But I can;t be bothered at the mo. Bigger fish to fry! :)

Hope this helps someone!


Jesus == Way == Truth == Life == Love == God
__________________
Jesus == Way == Truth == Life == Love == God
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
System.ArgumentException: Invalid Xml salloo XSLT 2 July 25th, 2007 05:43 AM
How to get data from top level elements hubba09 XSLT 1 July 6th, 2007 08:49 AM
XML broken after over write hamilton XML 2 January 8th, 2007 11:30 AM
Listing 5-3 not work with invalid authors.xml jliu BOOK: Professional ASP.NET 2.0 XML 1 April 3rd, 2006 10:06 PM
XML Write to a string dkb XML 0 December 16th, 2003 12:38 PM



All times are GMT -4. The time now is 12:50 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc