Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whitespace in DTD

Status
Not open for further replies.

chiph

Programmer
Jun 9, 1999
9,878
US
Ran into an annoying problem yesterday that I thought I'd pass along.

It seems that I had left off a space character in my DTD between the element name and the open parenthesis:
[tt]
ApproverUsers(ApproverType, ApproverUsers+)
[/tt]
Should have been:
[tt]
ApproverUsers (ApproverType, ApproverUsers+)
[/tt]
Tibco's TurboXML had no problems with this, but the Microsoft XML parser (MSXML 3.0 SP1) choked on it. The DOM.ParseError.Reason just said "problem in whitespace". I had to load it into XMLSpy on a coworker's machine to find which element was the problem.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top