Trying to convert to a XML document into another, I'm trying to figure out how
to access every second element node from the document root, take and sort all
their elements according 2 attributes ( GroupNumber and ElementNumber) and then
show them without copy the name of the second element name.
I have this file:
<VLPhotographicImageIOD xsi:noNamespaceSchemaLocation="vl_iod.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PatientIE>
<PatientModule>
<PatientsName ElementNumber="0010" GroupNumber="0010"
Name="Patient´s Name"/>
<PatientID ElementNumber="0020" GroupNumber="0010" Name="Patient
ID"/>
</PatientModule>
</PatientIE>
<StudyIE>
<GeneralStudyModule>
<StudyInstanceUID ElementNumber="000D" GroupNumber="0020"
Name="Study Instance UID"/>
<StudyDate ElementNumber="0020" GroupNumber="0008" Name="Study
Date"/>
</GeneralStudyModule>
<PatientStudyModule>
<AdmittingDiagnosesDescription ElementNumber="1080"
GroupNumber="0008" Name="Admitting Diagnoses Description"/>
<PatientsAge ElementNumber="1010" GroupNumber="0010"
Name="Patient´s Age"/>
</PatientStudyModule>
</StudyIE>
</VLPhotographicImageIOD>
And I want the other xml document in this way:
<StudyDate ElementNumber="0020" GroupNumber="0008" Name="Study Date"/>
<AdmittingDiagnosesDescription ElementNumber="1080" GroupNumber="0008"
Name="Admitting Diagnoses Description"/>
<PatientsName ElementNumber="0010" GroupNumber="0010" Name="Patient´s Name"/>
<PatientID ElementNumber="0020" GroupNumber="0010" Name="Patient ID"/>
<PatientsAge ElementNumber="1010" GroupNumber="0010" Name="Patient´s Age"/>
<StudyInstanceUID ElementNumber="000D" GroupNumber="0020" Name="Study Instance
UID"/>
What shoul i do?? Thanks.
La información contenida en este mensaje electrónico y en los archivos adjuntos
es propiedad de la Escuela de Ingeniería de Antioquia - EIA; es de carácter
confidencial y se remitió para uso exclusivo del destinatario. Las opiniones
emitidas en este mensaje competen al autor y no reflejan necesariamente el
concepto de la EIA. Si por error usted recibe este mensaje, le solicitamos de
manera comedida que informe al remitente de la EIA y lo borre, pues está
prohibido su uso, distribución, divulgación o almacenamiento, salvo
autorización expresa de la EIA.
The Information stated on this electronic message and on the attached files is
a property of the Escuela de Ingeniería de Antioquia - EIA. It has a
confidential character and has been sent to be used exclusively by the
receiver. The opinions given on this message belong to the authors and do not
reflect in any case the EIA's ones. If you receive this message by mistake,
please, inform the EIA's sender and erase it. As far as it is forbidden its
use, distribution, divulgation or storage, unless the EIA has given expressed
authorization.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--