Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member Edizon's Avatar
    Join Date
    Feb 2003
    Location
    AZ
    Posts
    90

    Post xml-api DTD

    <?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.
    "Life is like a box on cPanel Edge. You never know what your gonna get..."

  2. #2
    Member Amit Deshmukh's Avatar
    Join Date
    Jul 2007
    Posts
    83

    Cool Its Simple

    -
    -
    -
    Oops wrong solution
    -
    -
    -
    Last edited by Amit Deshmukh; 06-01-2008 at 03:36 AM.

  3. #3
    Member Edizon's Avatar
    Join Date
    Feb 2003
    Location
    AZ
    Posts
    90

    Default

    I have the latest version. I can view the xml document, its just missing the DTD.
    "Life is like a box on cPanel Edge. You never know what your gonna get..."

  4. #4
    Member Amit Deshmukh's Avatar
    Join Date
    Jul 2007
    Posts
    83

    Cool New Scripts

    W W !!!

    No !dea
    Last edited by Amit Deshmukh; 06-01-2008 at 04:16 AM.

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Edizon View Post
    I have the latest version. I can view the xml document, its just missing the DTD.
    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. #6
    Member Edizon's Avatar
    Join Date
    Feb 2003
    Location
    AZ
    Posts
    90

    Default

    Thanks for your response David. I will submit to bugzilla as a feature request. Perhaps as a variable to include like:<br>

    http://www.****.com:2086/xml-api/listaccts?show_dtd=1

    I wil use my workaround.
    Thanks David
    "Life is like a box on cPanel Edge. You never know what your gonna get..."

Similar Threads & Tags
Similar threads

  1. XML API 2 help
    By Dragonxito in forum cPanel Developers
    Replies: 1
    Last Post: 05-13-2011, 05:23 PM
  2. xml-api/accountsummary
    By monaghan in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-25-2008, 04:57 PM
  3. XML-API is any of these possible?
    By neo4242002 in forum cPanel Developers
    Replies: 3
    Last Post: 03-17-2008, 02:46 PM
  4. XML API: always get login screen, not XML
    By sldff3ald in forum cPanel Developers
    Replies: 3
    Last Post: 09-19-2007, 10:29 AM
  5. How do I use the xml - api?
    By rhopperger in forum cPanel Developers
    Replies: 3
    Last Post: 05-19-2007, 09:07 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube