I have a bit of a baffling problem! I'm writing a tag matcher in XML and whenever I run the below procedure, I get a garbage value after the name of every tag except for the first one. When I add the array text to the parameters list, the garbage value goes away (I had it there during initial debugging) even though it isn't actually referenced at any point in the procedure.
Another thing, is that while reading a tag, it doesn't seem to want to recognize spaces. For example, <img src="img.png"/> reads as imgsrc="imgpng" instead of img, but only when another tag is beside it on the same line. For example:
<head>
<img src="blah.jpg"/>
</head>
Reads the tagname fine, while
<head><img src="blah.jpg"/></head>
Results in strange output.
Full code:
Main problem code:
/* ReadTagName
* When a tag is detected, finds the name of the tag in the form <name ... - Full Post
No comments:
Post a Comment