How to use the doc() function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ebenstyles
    New Member
    • Apr 2015
    • 2

    How to use the doc() function

    Please can i use another file extension in the xquery doc() function?

    Example:
    Code:
    doc("users.html")
    I do not have permission to create .xml file, is there a way to access xml data without the .xml extension?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I stab a guess that the doc() function doesn’t care what the file name is, as long as the content is valid XML.

    Comment

    • Ebenstyles
      New Member
      • Apr 2015
      • 2

      #3
      Does that mean i can use .html or .xhtml?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        it doesn’t hurt to try it out, does it?

        Comment

        Working...