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

warning message always prints #135

Closed
tbeason opened this issue Apr 13, 2020 · 2 comments
Closed

warning message always prints #135

tbeason opened this issue Apr 13, 2020 · 2 comments

Comments

@tbeason
Copy link

tbeason commented Apr 13, 2020

When parsing a particular XML file, I always get this warning

┌ Warning: ignored the empty prefix for 'http://www.w3.org/2005/Atom'; expected to be non-empty
└ @ EzXML ~/.julia/packages/EzXML/ZNwhK/src/xpath.jl:85

Here is a snippet of the top of the file, which I think is probably the only relevant portion.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed xml:base="http://data.treasury.gov/Feed.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http:/www.w3.org/2005/Atom">

I am able to parse the file, but the warning always prints. Is there a way to either turn it off or for me to change how I parse the file so that it does not show?

@tbeason
Copy link
Author

tbeason commented Apr 15, 2020

For more reference, here is the package that I am using EzXML with. https://github.com/tbeason/DailyTreasuryYieldCurve.jl

@bicycle1885
Copy link
Member

I think parsing itself does not warn you; some XPath operation does. Have you checked this example? https://github.com/bicycle1885/EzXML.jl/blob/830d3c2bd73ff96b5cb69e854a47117c2c93cf8a/test/runtests.jl#L1284-L1294

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