note 43750 added to function.domdocument-xinclude

From: Date: Fri, 02 Jul 2004 01:14:35 +0000
Subject: note 43750 added to function.domdocument-xinclude
Groups: php.notes 
Request: Send a blank email to php-notes+get-72293@lists.php.net to get a copy of this message
xml Include using xpointer to include specific part of another xml doc Main xml file (or string): <?xml version="1.0" encoding="utf-8"?> <root xmlns:xi="http://www.w3.org/2001/XInclude"> <optional> <xi:include href="include.xml#xpointer(/parts/*)" parse="xml"> <xi:fallback> <error>Error.</error> </xi:fallback> </xi:include> </optional> <blah>blah</blah> <blah>blah</blah> </root> Include.xml file (or string: <?xml version="1.0" encoding="utf-8"?> <parts> <part>part one</part> <part>part two</part> <part>part three</part> </parts> href="include.xml#xpointer(/parts/*)" will include all <part> tags but NOT <parts> href="include.xml#xpointer(/parts/part[1])" will include <part>part one</part> simple but very usefull. ---- Manual Page -- http://www.php.net/manual/en/function.domdocument-xinclude.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43750 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43750&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43750&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#72293) next »