Reply to Re: How to build a XML DTD on "the fly"?

Your name:

Reply:


Posted by Erik Franzιn on 10/14/87 11:32

My real problem is that I am building a XML tree and I want to use the
getElementbyId method on the tree directly.

It would be very nice if it is possible to do it without including a
external dtd, since it takes some time to load every time.

The page http://blog.bitflux.ch/wiki/GetElementById_Pitfalls have some
information about my issue, but I have not found the path to go yet.

I am using php5.05 on Win32.


/Erik



Rob wrote:
> 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.
>
> Rob
>

[Back to original 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация