Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: XML Namespaces

by beech (Parson)
on Oct 11, 2017 at 02:01 UTC ( [id://1201137]=note: print w/replies, xml ) Need Help??


in reply to XML Namespaces

Hi

What happens if you delete the context (or just omit the ss registration), and delete  xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" from the xml file?

Replies are listed 'Best First'.
Re^2: XML Namespaces
by simsrw73 (Novice) on Oct 11, 2017 at 03:16 UTC
    I can omit ALL of the namespace registration in the code as is and it doesn't make a difference. It still works with all the prefix qualifiers in the findnode() method. If I try to remove the part of the line you mention in the xml... I didn't get far as it was requiring a great deal of editing the remaining xml and I didn't get past the errors. Is it requiring all the prefix qualifiers in the call to findnode because the ss namespace is the same uri as the default namespace? I was expecting it to let me omit the ss prefix because of that. That's the heart of my confusion that I have to specify all those prefixes even where xml doesn't include the prefix.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1201137]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-19 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found