M
M
Mercury132017-09-28 14:48:58
Programming
Mercury13, 2017-09-28 14:48:58

Is it possible in XML to have an attribute with a namespace earlier than XMLNS?

The question is. How possible is such code in XML?

<a:tag a:attr="value" xmlns:a="http://example.com/" />

Parsing such XML is very difficult to program, subtle errors are possible, and even more so if high performance is needed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2017-09-28
@Mercury13

Again, you have to answer yourself. Available.
www.oracle.com/technetwork/articles/srivastava-nam...

<?xml version="1.0"?>
<Book isbn="1234"
      pfx:cover="hard"
      xmlns="http://www.library.com"
      xmlns:pfx="http://www.library.com">
  <Title>Sherlock Holmes</Title>
  <Author>Arthur Conan Doyle</Author>
</Book>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question