Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML Parsing Error: not well-formed Location #8

Open
spoon16 opened this issue Jun 7, 2010 · 1 comment
Open

XML Parsing Error: not well-formed Location #8

spoon16 opened this issue Jun 7, 2010 · 1 comment

Comments

@spoon16
Copy link

spoon16 commented Jun 7, 2010

When the below comparison will throw an exception when being displayed in fireunit using pretty print (actual test works fine and succeeds).

fireunit.compare('<test>', '<test>', 'comparing bracketed values');

Error:

XML Parsing Error: not well-formed Location: moz-nullprincipal:{99b4e839-a0cc-448e-a0ef-23eccd873513} Line Number 1, Column 24:

<wrapper><test></wrapper>
---------------^

<test>
@spoon16
Copy link
Author

spoon16 commented Jun 7, 2010

In fireunit.js:insertXml is generating invalid XML on this line when result.expected has something that is not valid as a XML element body. I'm not sure if there is a valid case for treating the expected result as actual XML nodes itself but it would be possible to get rid of this error by wrapping the contents of with <[CDATA[]]>

var tempXml = "<wrapper>" + xml + "</wrapper>";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant