Closed angelozerr closed 2 years ago
Are you sure you're parsing with namespace support enabled? What API are you using for parsing? The "attribute" named xmlns
should not be reported as an attribute if namepace support is enabled.
Thanks so much @ndw for your comment. I fixed my problem and it was indeed a namespace. I use Xerces SAXParser and my configuration was
org.apache.xerces.parsers.SAXParser = ...
parser.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
I changed to:
org.apache.xerces.parsers.SAXParser = ...
parser.setFeature("http://xml.org/sax/features/namespace-prefixes", false);
and now it works pefectly.
Thanks again @ndw !
I'm starting to integrate Jing in your XML Language Server to provide validation and completion for RelaxNG. I tried this sample:
that we can found at https://digital-editing.fas.harvard.edu/editor/
And I have an error on
xmlns
attribute:Do you think it is a bug from Jing or some Jing configuration which is not done correctly?