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

fxparser is not defined ( html browser, CDN ) #696

Open
hoogw opened this issue Nov 18, 2024 · 3 comments
Open

fxparser is not defined ( html browser, CDN ) #696

hoogw opened this issue Nov 18, 2024 · 3 comments

Comments

@hoogw
Copy link

hoogw commented Nov 18, 2024

Please help, I get error

fxparser is not defined

Screenshot 2024-11-18 at 9 49 12 AM

HTML tag

<script src="https://cdnjs.cloudflare.com/ajax/libs/fast-xml-parser/4.5.0/fxparser.min.js" integrity_no="sha512-q1u77EjD05HQWHgQEOkFWpMXXJQZLHNNgMVxp0K+LvtStBVHcgbm+u18TFTPpZ48fcjX4NZJlljQM4mNkUeifA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

JS
const parser = new fxparser.XMLParser(); let getCapabilities_Obj = parser.parse(getCapabilities);

I am not sure, why fxparser was comment out in min.js file see

Screenshot 2024-11-18 at 9 52 50 AM

Do I also need to add https://cdnjs.cloudflare.com/ajax/libs/fast-xml-parser/4.5.0/fxparser.min.js.map to html ?

Copy link

We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.

@hoogw
Copy link
Author

hoogw commented Nov 18, 2024

ok, I change code to
const parser = new XMLParser();

No error, but result is empty,

here is my xml document
Screenshot 2024-11-18 at 10 26 15 AM

Here is console, parse result object is empty.
Screenshot 2024-11-18 at 10 26 56 AM

@amitguptagwl
Copy link
Member

const parser = new fxp.XMLParser(config);
result = parser.parse(xmlData);

FYR: https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/index.html

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

2 participants