Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

xml-api DTD

Discussion in 'cPanel Developers' started by Edizon, Jun 1, 2008.

  1. Edizon

    Edizon Well-Known Member

    Joined:
    Feb 18, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    AZ
    <?xml version="1.0" encoding="UTF-8"?>

    Why is there no DTD in the document? I have been getting a lot of errrors with my application as not being valid XML file.

    I have been calling it like:
    http://www.****.com:2086/xml-api/listaccts?

    I get:

    <listacct>
    <accts)
    etc..

    When I call
    http://www.****.com:2086/xml-api/cpanel?&xmlin=<cpanelaction><module>Park</module><func>listparkeddomains</func></cpanelaction>

    I get a <?xml version="1"?>
    - <cpanelresult>
    <apiversion>1</apiversion>
    <type>text</type>
    - <data>
    <result>Access Denied to .</result>
    </data>
    </cpanelresult>

    I have created a few work arounds, however I was just wondering if there was more required information than just "/listaccts?" that would create properly formatted XML.

    Is is actual native XML or an xml clone proprietaried by cPanel??

    Thanks any help will be appreciated.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Amit Deshmukh

    Amit Deshmukh Well-Known Member

    Joined:
    Jul 1, 2007
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    56
    Its Simple

    -
    -
    -
    Oops wrong solution
    -
    -
    -
     
    #2 Amit Deshmukh, Jun 1, 2008
    Last edited: Jun 1, 2008
  3. Edizon

    Edizon Well-Known Member

    Joined:
    Feb 18, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    AZ
    I have the latest version. I can view the xml document, its just missing the DTD.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Amit Deshmukh

    Amit Deshmukh Well-Known Member

    Joined:
    Jul 1, 2007
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    56
    New Scripts

    W :) W !!!

    No !dea
     
    #4 Amit Deshmukh, Jun 1, 2008
    Last edited: Jun 1, 2008
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    At this time, there is no DTD for the XML returned by the XML-API. However, you can find documentation for the XML API on our website at:

    http://www.cpanel.net/plugins/xmlapi/index.html

    Of course, just look at the return values for applist to get a list of commands.
     
  6. Edizon

    Edizon Well-Known Member

    Joined:
    Feb 18, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    AZ
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice