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 Handler #62

Open
csreades opened this issue Jul 6, 2024 · 0 comments
Open

XML Handler #62

csreades opened this issue Jul 6, 2024 · 0 comments

Comments

@csreades
Copy link
Contributor

csreades commented Jul 6, 2024

A number of issues with the XML functions in the state environment.

  • Successive "RemoveAttribute" calls result in:
    "
    Exception thrown: read access violation.
    this was 0x68.
    "
  • SaveToString calls once an attribute has been removed and then added throws the same error
  • SaveToString calls can duplicate "xmlns=..."

This error can be repeated by including an XML file in the resource folder and using this code:

	auto xml_string = pStateEnvironment->LoadResourceString("test");
	auto xml_object = pStateEnvironment->ParseXMLString(xml_string);
	auto xml_string_back = xml_object->SaveToString(false);
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