Re: [xml] Re: namespace xmllint error (libxml 2.5.11)



Patrick Gundlach writes:
Hi again,

 XML syntax only at the moment. I may add support for the compact syntax
later,

I did some tests, and I am confused. Sorry for my ignorance. Could
anybody point out what I am doing wrong?

[...]

you don't declare the name attribute for the interface element.
In compact syntax your schema is
default namespace = "http://www.pragma-ade.com/commands";

element interface {
  element command {
    attribute name { text }
  }*
}

while you are trying to express

default namespace = "http://www.pragma-ade.com/commands";

element interface {
  attribute name { text },
  element command {
    attribute name { text }
  }*
}

trang translates between compact and xml syntax and I prefer the
compact syntax, which is easier to read.

HTH
        Morus




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]