nested lists

23 views
Skip to first unread message

HSS Webmonkey

unread,
May 7, 2012, 2:26:40 PM5/7/12
to RedDot CMS Users
i'm trying to pull out a bunch of data into an xml file. basically, we
have 290 physicians and i need to pull certain pieces of each profile
into an xml file for upload to another system. most of these are text
fields, but one of them is list. because i'm already using a list tag
to pull all of the data from the profiles, it seems that the data
chunk that is a second list is shorting out the pull - i get data from
one profile and that's it. as soon as i remove this field, it works
fine (but of course, i'm missing some data i desperately need). is
there a way to next lists in v. 10? the code is as follows (see the
second list in the Research-Activities tag):


<?xml version="1.0" encoding="utf-8"?>
<Physicians>
<!IoRangeList>
<Person>
<Name><%hdl_pageTitle%></Name>
<Image>http://www.hss.edu<%img_profilePhoto%></Image>
<Website>http://www.hss.edu<%lst_physicians%></Website>
<Overview><%text_profileNarrative%></Overview>
<Affiliations><%text_affiliations%></Affiliations>
<Publications><%text_publications%></Publications>
<Research>
<Research-Overview><%txt_researchparagraph%></Research-
Overview>
<Research-Areas><%text_researchInterests%></Research-
Areas>
<Research-Activities>
<!IoRangeList><a href="<%list_clinicalTrials
%>"><%hdl_pageTitle%></a><!/IoRangeList>
</Research-Activities>
</Research>
<Teaching><%text_appointments%></Teaching>
<Background>
<Background-Educational-Training>Education: <
%text_education%>; Internship: <%text_internship%>; Residency: <
%text_residency%></Background-Educational-Training>
<Background-Awards-Distinctions><%text_awards%></
Background-Awards-Distinctions>
</Background>
<Contact>
<Work-Email><%txt_email%></Work-Email>
<Mailing-Address><%text_officeLocation%></Mailing-Address>
</Contact>
<Other>
<Other-Keywords><%text_htmlMetaKeywords%></Other-Keywords>
</Other>
</Person><!/IoRangeList>
</Physicians>

Any help would be greatly appreciated.

thanks! brett
Message has been deleted

Joel Kinzel

unread,
Jun 14, 2012, 6:07:21 PM6/14/12
to reddot-c...@googlegroups.com
List elements cannot be nested. You will have to find a work around of some sort. Jian posted a solution in another thread that used containers. It would be some work, but you could convert list_clinicalTrials into a container which houses multiple pages (which contain just the information you need). 
Reply all
Reply to author
Forward
0 new messages