Coder Social home page Coder Social logo

Comments (6)

amitguptagwl avatar amitguptagwl commented on July 18, 2024

from fast-xml-parser.

brad1121 avatar brad1121 commented on July 18, 2024

I can't. It's a feed which changes daily that is not publicly available. This is an out of the ordinary occurrence. It has been running fine for the last 5 days... I can give a altered sample of the complete schema.

This is a one off where the Name field had a nested '' in it where it typically shouldn't.

<root>
<Meet date="2017-05-03" type="A" name="Meeting A">
   <Event time="00:05:00" ID="574" Name="Some Event Name">
         <User ID="1">Bob</User>
    </Event>
</Meet>
</root>

There can be thousands of Meet's in root, There are between 8-13 events per Meet. and any number of Users per event. But they all follow the same layout.

from fast-xml-parser.

amitguptagwl avatar amitguptagwl commented on July 18, 2024

@brad1121 single quote in value is allowed if the complete value is enclosed in double quote and vise versa. If the parser is ignoring only single attribute but parsing all other attributes then it seems a bug otherwise it is configuration issue.

Can you plz send me what is the parsed response?

I don't have any machine for next 2 weeks at least. So I'll not be much active to fix the issue, if any. Sorry for inconvenience.

from fast-xml-parser.

brad1121 avatar brad1121 commented on July 18, 2024

All other nodes without the nested single quotes worked as expected.

Parsed Event response as follows.

{
"time": "00:05:00",
"ID": 574,
"User" : [ ... ]
}

All other nodes

{
"time": "00:05:00",
"ID": 574,
"Name" : "Some Event Name",
"User" : [ ... ]
}

Setup as follows

fastXmlParser.parse( XML,
                       {
                        attrPrefix : "",
                        textNodeName : '_',
                        ignoreNonTextNodeAttr : false,
                        ignoreTextNodeAttr : false,
                        ignoreNameSpace : false
});

from fast-xml-parser.

amitguptagwl avatar amitguptagwl commented on July 18, 2024

from fast-xml-parser.

amitguptagwl avatar amitguptagwl commented on July 18, 2024

Fixed. Plz refer version 2.4.4

Thanks for the patience.

from fast-xml-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.