#1 (permalink)  
Old 06-01-2008, 02:46 AM
Edizon's Avatar
Registered User
 
Join Date: Feb 2003
Location: AZ
Posts: 90
Edizon is on a distinguished road
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..."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-01-2008, 02:55 AM
Registered User
 
Join Date: Jul 2007
Posts: 83
Amit Deshmukh is on a distinguished road
Cool Its Simple

-
-
-
Oops wrong solution
-
-
-

Last edited by Amit Deshmukh; 06-01-2008 at 03:36 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-01-2008, 03:09 AM
Edizon's Avatar
Registered User
 
Join Date: Feb 2003
Location: AZ
Posts: 90
Edizon is on a distinguished road
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..."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-01-2008, 03:35 AM
Registered User
 
Join Date: Jul 2007
Posts: 83
Amit Deshmukh is on a distinguished road
Cool New Scripts

W W !!!

No !dea

Last edited by Amit Deshmukh; 06-01-2008 at 04:16 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-02-2008, 01:31 PM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
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.
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-03-2008, 03:00 AM
Edizon's Avatar
Registered User
 
Join Date: Feb 2003
Location: AZ
Posts: 90
Edizon is on a distinguished road
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..."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:29 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc