Or you can modify your App Builder project to add a searchable-expression of 
/total/mainElement.  See this for some details:

http://docs.marklogic.com/4.2doc/docapp.xqy#display.xqy?fname=http://pubs/4.2doc/xml/appbuilder/custom.xml%2376540

If you do this, you might consider fragmenting at mainElement.

-Danny
________________________________________
From: [email protected] 
[[email protected]] On Behalf Of Sunny Wang01 
[[email protected]]
Sent: Sunday, May 15, 2011 6:17 PM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Configuring Application builder

Total//MianElement/node()

From: [email protected] 
[mailto:[email protected]] On Behalf Of anirudh chappidi
Sent: 2011年5月15日 17:49
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Configuring Application builder

I am using application builder to view xml files. The problem is that the 
search application generated by app builder shows the complete file as a single 
result.

If I have the xml structure as:

<total>
<mainElement>
content
</mainElement>
<mainElement>
content
</mainElement>
    .
    .
    .
    .
<mainElement>
content
</mainElement>
</total>

and I want to display the content of "mainElement" as a single result. How can 
I achieve this?

--
My Life is filled with terrible misfortune, most of which never happened....

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***


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

Reply via email to