You are here: RE: [PHP] How to build a XML DTD on "the fly"? « PHP « IT news, forums, messages
RE: [PHP] How to build a XML DTD on "the fly"?

Posted by "Jared Williams" on 11/19/05 01:41

>
> Jared Williams wrote:
> >
> > There is no real standard for creating DTDs on the fly, and
> therefore libxml/DOM doesn't have any methods afaik.
> >
> > The one method DOMElement::setIDAttribute() should work I
> think, but
> > whilst PHP has the method, doesn’t seem todo anything. :/
>
> DocumentType nodes are read-only in DOM thus cannot be built
> on the fly.
> Also notice that not all components, such as ATTLIST, even
> have a node type.
>
> setIDAttribute - thats on the TODO list. Were some previous
> libxml issues to be resolved before that could be implemented
> (so it will be added, but require a minimum libxml2 version to work).
> Can always use xml:id attributes for that purpose for now though.

setAttributeNS('http://www.w3.org/XML/1998/namespace', 'id', 'abc') doesn’t work either, getElementById() still fails.

Jared

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация