0
一直有這個問題。如何將名稱空間URL屬性添加到根?我甚至有可能嗎?歡迎任何解決方法。我必須使用Dublin Core的一些定義,並且我的XML要求聲明名稱空間。即PHP Luracast Restler將名稱空間屬性添加到根元素
<metadata
xmlns="http://example.org/myapp/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd"
xmlns:dc="http://purl.org/dc/elements/1.1/">
...
</metadata>