Hi Dave,

Thanks for your reply,

I tried your below suggestion, I accomplished getting an entire document.

However my requirement was to retrieve name of the elements in the document,

For Example: Consider the following document.

<Capitals>
     <USA> Washington dc </USA>
     <Russia>Moscow </Russia>
     <China> Beijing </China>
</Capitals>

I need a way so that I can only get name of the elements (i.e. USA, Russia and 
China) in my results  not its values.

Thanks & Regards,
Bhushan Suryawanshi

From: [email protected] 
[mailto:[email protected]] On Behalf Of Dave Cassel
Sent: Thursday, January 5, 2017 1:24 PM
To: MarkLogic Developer Discussion <[email protected]>
Subject: Re: [MarkLogic Dev General] Getting element/attribute names and their 
usage frequency using Rest API

If you use the "raw" option for the transform-results part of your search 
options, you'll get back the entire document.
http://docs.marklogic.com/guide/rest-dev/appendixb#id_29258

--
Dave Cassel<http://davidcassel.net>, @dmcassel<https://twitter.com/dmcassel>
Technical Community Manager
MarkLogic Corporation<http://www.marklogic.com/>
http://developer.marklogic.com/



From: 
<[email protected]<mailto:[email protected]>>
 on behalf of Bhushan Suryawanshi 
<[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Thursday, January 5, 2017 at 11:44 AM
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Subject: Re: [MarkLogic Dev General] Getting element/attribute names and their 
usage frequency using Rest API

Hi Guys,

Any idea on the below request?

Thanks & Regards,
Bhushan Suryawanshi

From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Bhushan 
Suryawanshi
Sent: Wednesday, January 4, 2017 4:33 PM
To: [email protected]<mailto:[email protected]>
Subject: [MarkLogic Dev General] Getting element/attribute names and their 
usage frequency using Rest API

Hello Guys,

I was working on MarkLogic 8 using REST API. I want to retrieve all the element 
and attributes of a XML/JSON document using REST API.
I have went through the MarkLogic  documentation and couldn't find a way.

Consider the following XML:

<PLAY>
<TITLE> ...</TITLE>
<FM>.</FM>
<PERSONAE></PERSONAE>
<SCNDESCR></SCNDESCR>
<PLAYSUBT></PLAYSUBT>
<ACT></ACT>
</PLAY>

I want my search results to include list of TITLE,FM,PERSONAE and so on

Any help would be greatly appreciated.


Bhushan Suryawanshi
Developer
t: +1-212-401-7894
www.xenomorph.com<http://www.xenomorph.com/?mail> | 
blog<http://xenomorph.typepad.com/?mail> | twitter<http://goo.gl/oaBWO> | 
linkedin<http://goo.gl/rdi8W>


This email is confidential and is intended only for the addressee. If you are 
not the intended recipient, please note that any dissemination, distribution or 
copying of this email is strictly prohibited. Any and all estimates, proposals, 
quotes and fees contained herein are for discussion purposes only and are not 
contractually binding unless executed in accordance with the standard practices 
of the Company. Attachments to this message have been virus checked but no 
guarantee can be made that any attachment is virus free. Please notify us 
immediately of any problem.



_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to