-
Notifications
You must be signed in to change notification settings - Fork 607
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
Missing : Missing Order when child element is combination of Text and Element in Processing XML To Json #340
Comments
if u only care for json use options like so: |
Is this a limitation of this library's implementation ? Do other parser's handle this better ? I have a format like : I thought that Id be able to use a valueProcessor to pull the contents of item2 as a string (I dont care about parsing the html inside item2 and I need to preserve it) but it doesn't seem to be the case as the valueProcessor gets called after the contents of Am I missing something or do I need another library ? |
how to fix this question? did you find the answer for the question @ChakralaKartheek |
@discreteinfinity did u fix this question? |
@maa105 So xml2js is not bidirectonal? |
@hjy1210 if node order is a must for you it wont work otherwise it is |
I agree. |
I have a use case in XML , where XML element has Text and element as child elements.
Example
<APPUser> I am <TextValue Elment="UserName"></UserName>. I am <TextValue Element="Gender"> <TextValue > </APPUser>
When I convert this kind of XMLto JSON, It is resulting like this
`APPUser {
I don't want it to be grouped, and i want result should be in sequential order like this
`APPUser {
Value : I am
TextValue : { Element : UserName"}
Value : . I am
TextValue : ,{Elment:Gender},
is this possible with existing version of xml2js ?
The text was updated successfully, but these errors were encountered: