downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

xml_parser_create> <xml_parse
[edit] Last updated: Fri, 23 Mar 2012

view this page in

xml_parser_create_ns

(PHP 4 >= 4.0.5, PHP 5)

xml_parser_create_nsİsim alanı destekli bir XML çözümleyici oluşturur

Açıklama

resource xml_parser_create_ns ([ string $kodlama [, string $ayraç = ':' ]] )

xml_parser_create_ns() işlevi, isim alanı destekli yeni bir XML çözümleyici oluşturup diğer XML işlevleri tarafından kullanılmak üzere çözümleyici için bir tanıtıcı döndürür.

Değiştirgeler

kodlama

İsteğe bağlı kodlama değiştirgesi ile PHP4'te girdi/çıktı için karakter kodlaması belirtilir. PHP 5'ten itibaren, girdi kodlaması özdevinimli olarak algılanmakta olduğundan bu değiştirge ile sadece çıktı karakter kodlaması belirtilebilmektedir. PHP 4'te her iki kodlama da aynı olmak zorundadır. Değiştirgeye boş bir dizge atanmışsa çözümleyici belgenin ilk 3 veya 4 baytına bakarak kodlamayı belirlemeye çalışır. PHP 5.0.0 ve 5.0.1'de öntanımlı karakter kümesi ISO-8859-1, PHP 5.0.2'den itibaren UTF-8'dir. Desteklenen karakter kodlamaları: ISO-8859-1, UTF-8 ve US-ASCII.

ayraç

İsim alanı içeren etiket ve öznitelik isimlerinde isim alanı önekinden sonra kullanılacak ayraç.

Dönen Değerler

Yeni XML çözümleyicinin tanıtıcısı ile döner.

Ayrıca Bakınız



add a note add a note User Contributed Notes xml_parser_create_ns
jonnyNO at SPAM dot sanriowasteland dot net 10-Jun-2002 11:49
This is from the Expat Function Reference by Clark Cooper, which is a reference to the C api.  

"XML_Parser XML_ParserCreateNS(const XML_Char*encoding, XML_Char sep)
Constructs a new parser that has namespace processing in effect. Namespace expanded element names and attribute names are returned as a concatenation of the namespace URI, sep, and the local part of the name. This means that you should pick a character for sep that can't be part of a legal URI."

(from http://www.xml.com/pub/a/1999/09/expat/reference.html)

So thats what this function is for.  Now you know.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites