Debug XML Document with PHP

Monday, 7 September 2009
How to find out where is the problem with your XML document?


1. Fastest solution - isolate the problem:
  • Delete the first half of the XML.
  • If the error disappeared, place it back on and delete just the first half of this half.
  • Continue deleting and placing back chunks of the XML until you get the only line that is causing the problem.
  • Now you can research on the single problem you have found.
2. Slowest solution:
  • If you can't find the problem using the previous approach, it is very likely that you have more than one bugs in the XML document to fix.
  • Execute the '1. Fastest solution' (the previous bullet point) on just the half of the XML document. Try to debug only a chunk of it at a time until all problems are fixed.
3. Use the online tool XML debugger:
  • I've just developed to help on this process and is very simple to use.


Labels: , ,

0 Comments:

Post a Comment

Links to this post:

Create a Link

<<Home

©2009 Thales Jacobi