New answers tagged

3 votes

In a function definition, how should I declare an XMLObject["Document"] argument?

This is a syntax issue with the pattern notation. Consider this from your f3: ...
lericr's user avatar
  • 22.4k
1 vote
Accepted

In a function definition, how should I declare an XMLObject["Document"] argument?

You may use a pattern with a condition, like: MatchQ[myXML, x_ /; Head[x] == XMLObject["Document"]] True With this you may then define e.g.: ...
Daniel Huber's user avatar
  • 45.4k

Top 50 recent answers are included