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

Return valid XML document in reply.getContain() #8

Open
isartcanyameres opened this issue Aug 5, 2013 · 0 comments
Open

Return valid XML document in reply.getContain() #8

isartcanyameres opened this issue Aug 5, 2013 · 0 comments

Comments

@isartcanyameres
Copy link
Member

When the content of a response has multiple XML elements, resulting reply.getContain() is not a valid XML document because it has multiple top-level elements.
This behaviour may appear in several queries. I.e. interface-information, software-information, etc.

It may require a test suite and some fixes in TransportContentParser class to avoid having multiple top-level elements independently of the message content.

A possible solution would be to apply broad in the class the solution applied in software-information. That is, appending the top-level element containing the query type (i.e. "software-information")

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

No branches or pull requests

1 participant