The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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.
     
  2. Amit Deshmukh

    Amit Deshmukh Well-Known Member

    Joined:
    Jul 1, 2007
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    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:
    6
    Location:
    AZ
    I have the latest version. I can view the xml document, its just missing the DTD.
     
  4. Amit Deshmukh

    Amit Deshmukh Well-Known Member

    Joined:
    Jul 1, 2007
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    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,279
    Likes Received:
    8
    Trophy Points:
    38
    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:
    6
    Location:
    AZ
Loading...

Share This Page