| 
| Multiple Files [message #17268] | Fri, 25 May 2007 00:59  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: evaandoli.dodo.com.au 
 Hi,
 
 I have a top level XML document that contains references to other XML
 document of the same format.
 Each document has a list of values which have various attibutes.
 I want to create an aggregate of these values so I can interrigate then and
 ensure some of their attributes are the same.
 
 I used an iterate and load combination to get all the XML documents.
 
 But I'm unsure how to create the attrigation so I can query from the top
 level.
 
 Any pointers,
 
 Stu
 |  |  |  | 
|  | 
|  | 
| 
| Re: Multiple Files [message #17372 is a reply to message #17352] | Sat, 26 May 2007 09:55   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: evaandoli.dodo.com.au 
 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_012F_01C79FF1.6755CF00
 Content-Type: text/plain;
 charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 Sorry little bit unclear with the answer (and equally maybe I wasn't =
 clear).
 Im using JET2.
 
 So is this importNode something I should use before I call Jet or is it =
 a Jet tag.
 
 Thanks,
 
 Stu
 "Ed Merks" <merks@ca.ibm.com> wrote in message =
 news:f392v5$ut3$2@build.eclipse.org...
 Stu,
 
 To move an Element from one Document to another, you need to use =
 Document.importNode.
 
 
 Stu wrote:=20
 I guess my idea situation  on this would be to temporarily "merge" all =
 the=20
 files so I can perform XPath queries over the whole data.
 I hope that makes sense.
 
 Can you read in the XML and then add the whole structure as an Element =
 to=20
 the parent ?  (I tired with load and addElement but didn't seem to work)
 
 Stu
 
 "Stu" <evaandoli@dodo.com.au> wrote in message=20
 news:f35qft$v25$1@build.eclipse.org...
 Hi,
 
 I have a top level XML document that contains references to other XML=20
 document of the same format.
 Each document has a list of values which have various attibutes.
 I want to create an aggregate of these values so I can interrigate then=20
 and ensure some of their attributes are the same.
 
 I used an iterate and load combination to get all the XML documents.
 
 But I'm unsure how to create the attrigation so I can query from the top =
 
 level.
 
 Any pointers,
 
 Stu
 
 =20
 
 =20
 
 ------=_NextPart_000_012F_01C79FF1.6755CF00
 Content-Type: text/html;
 charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type =
 content=3Dtext/html;charset=3DISO-8859-1>
 <META content=3D"MSHTML 6.00.6000.16441" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY text=3D#000000 bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>Sorry little bit unclear with the =
 answer (and=20
 equally maybe I wasn't clear).</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2>Im using JET2.</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
 <DIV><FONT face=3DArial size=3D2>So is this importNode something I =
 should use before=20
 I call Jet or is it a Jet tag.</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
 <DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
 <DIV><FONT face=3DArial size=3D2>Stu</FONT></DIV>
 <BLOCKQUOTE=20
 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
 BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
 <DIV>"Ed Merks" <<A =
 href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>>=20
 wrote in message <A=20
 =
 href=3D"news:f392v5$ut3$2@build.eclipse.org">news:f392v5$ut3$2@build.ecli=
 pse.org</A>...</DIV>Stu,<BR><BR>To=20
 move an Element from one Document to another, you need to use=20
 Document.importNode.<BR><BR><BR>Stu wrote:=20
 <BLOCKQUOTE cite=3Dmidf38bn9$9in$1@build.eclipse.org =
 type=3D"cite"><PRE wrap=3D"">I guess my idea situation  on this would be =
 to temporarily "merge" all the=20
 files so I can perform XPath queries over the whole data.
 I hope that makes sense.
 
 Can you read in the XML and then add the whole structure as an Element =
 to=20
 the parent ?  (I tired with load and addElement but didn't seem to work)
 
 Stu
 
 "Stu" <A class=3Dmoz-txt-link-rfc2396E =
 href=3D"mailto:evaandoli@dodo.com.au"><evaandoli@dodo.com.au></A> =
 wrote in message=20
 <A class=3Dmoz-txt-link-freetext =
 href=3D"news:f35qft$v25$1@build.eclipse.org">news:f35qft$v25$1@build.ecli=
 pse.org</A>...
 </PRE>
 <BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Hi,
 
 I have a top level XML document that contains references to other XML=20
 document of the same format.
 Each document has a list of values which have various attibutes.
 I want to create an aggregate of these values so I can interrigate then=20
 and ensure some of their attributes are the same.
 
 I used an iterate and load combination to get all the XML documents.
 
 But I'm unsure how to create the attrigation so I can query from the top =
 
 level.
 
 Any pointers,
 
 Stu
 
 </PRE></BLOCKQUOTE><PRE wrap=3D""><!---->
 
 </PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>
 
 ------=_NextPart_000_012F_01C79FF1.6755CF00--
 |  |  |  | 
| 
| Re: Multiple Files [message #17389 is a reply to message #17372] | Sat, 26 May 2007 11:01   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: merks.ca.ibm.com 
 This is a multi-part message in MIME format.
 --------------030408020007050306000708
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Stu,
 
 I was only answering how to do this in DOM.  I don't really understand
 whether you are trying to do something within JET or outside of JET and
 them feed it to JET, so I assumed the later.  I don't think JET itself
 will provide anything that will make a bunch of XML documents look like
 one document for the purpose of XPath evaluation.
 
 
 Stu wrote:
 > Sorry little bit unclear with the answer (and equally maybe I wasn't
 > clear).
 > Im using JET2.
 >
 > So is this importNode something I should use before I call Jet or is
 > it a Jet tag.
 >
 > Thanks,
 >
 > Stu
 >
 >     "Ed Merks" <merks@ca.ibm.com <mailto:merks@ca.ibm.com>> wrote in
 >     message news:f392v5$ut3$2@build.eclipse.org...
 >     Stu,
 >
 >     To move an Element from one Document to another, you need to use
 >     Document.importNode.
 >
 >
 >     Stu wrote:
 >>     I guess my idea situation  on this would be to temporarily "merge" all the
 >>     files so I can perform XPath queries over the whole data.
 >>     I hope that makes sense.
 >>
 >>     Can you read in the XML and then add the whole structure as an Element to
 >>     the parent ?  (I tired with load and addElement but didn't seem to work)
 >>
 >>     Stu
 >>
 >>     "Stu" <evaandoli@dodo.com.au> wrote in message
 >>     news:f35qft$v25$1@build.eclipse.org...
 >>
 >>>     Hi,
 >>>
 >>>     I have a top level XML document that contains references to other XML
 >>>     document of the same format.
 >>>     Each document has a list of values which have various attibutes.
 >>>     I want to create an aggregate of these values so I can interrigate then
 >>>     and ensure some of their attributes are the same.
 >>>
 >>>     I used an iterate and load combination to get all the XML documents.
 >>>
 >>>     But I'm unsure how to create the attrigation so I can query from the top
 >>>     level.
 >>>
 >>>     Any pointers,
 >>>
 >>>     Stu
 >>>
 >>>
 >>
 >>
 >>
 >
 
 
 --------------030408020007050306000708
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
 </head>
 <body bgcolor="#ffffff" text="#000000">
 Stu,<br>
 <br>
 I was only answering how to do this in DOM.  I don't really understand
 whether you are trying to do something within JET or outside of JET and
 them feed it to JET, so I assumed the later.  I don't think JET itself
 will provide anything that will make a bunch of XML documents look like
 one document for the purpose of XPath evaluation.<br>
 <br>
 <br>
 Stu wrote:
 <blockquote cite="midf39e9k$iq3$1@build.eclipse.org" type="cite">
 <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
 <meta content="MSHTML 6.00.6000.16441" name="GENERATOR">
 <style></style>
 <div><font face="Arial" size="2">Sorry little bit unclear with the
 answer (and equally maybe I wasn't clear).</font></div>
 <div><font face="Arial" size="2">Im using JET2.</font></div>
 <div> </div>
 <div><font face="Arial" size="2">So is this importNode something I
 should use before I call Jet or is it a Jet tag.</font></div>
 <div> </div>
 <div><font face="Arial" size="2">Thanks,</font></div>
 <div> </div>
 <div><font face="Arial" size="2">Stu</font></div>
 <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
 <div>"Ed Merks" <<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>>
 wrote in message <a href="news:f392v5$ut3$2@build.eclipse.org">news:f392v5$ut3$2@build.eclipse.org</a>...</div>
 Stu,<br>
 <br>
 To move an Element from one Document to another, you need to use
 Document.importNode.<br>
 <br>
 <br>
 Stu wrote:
 <blockquote cite="midf38bn9$9in$1@build.eclipse.org" type="cite">
 <pre wrap="">I guess my idea situation  on this would be to temporarily "merge" all the
 files so I can perform XPath queries over the whole data.
 I hope that makes sense.
 
 Can you read in the XML and then add the whole structure as an Element to
 the parent ?  (I tired with load and addElement but didn't seem to work)
 
 Stu
 
 "Stu" <a class="moz-txt-link-rfc2396E"
 href="mailto:evaandoli@dodo.com.au"><evaandoli@dodo.com.au></a> wrote in message
 <a class="moz-txt-link-freetext"
 href="news:f35qft$v25$1@build.eclipse.org">news:f35qft$v25$1@build.eclipse.org</a>...
 </pre>
 <blockquote type="cite">
 <pre wrap="">Hi,
 
 I have a top level XML document that contains references to other XML
 document of the same format.
 Each document has a list of values which have various attibutes.
 I want to create an aggregate of these values so I can interrigate then
 and ensure some of their attributes are the same.
 
 I used an iterate and load combination to get all the XML documents.
 
 But I'm unsure how to create the attrigation so I can query from the top
 level.
 
 Any pointers,
 
 Stu
 
 </pre>
 </blockquote>
 <pre wrap=""><!---->
 
 </pre>
 </blockquote>
 <br>
 </blockquote>
 </blockquote>
 <br>
 </body>
 </html>
 
 --------------030408020007050306000708--
 |  |  |  | 
| 
| Re: Multiple Files [message #18167 is a reply to message #17268] | Mon, 28 May 2007 09:02  |  | 
| Eclipse User  |  |  |  |  | Stu: 
 Have you tried c:copyElement ?
 
 Paul
 
 "Stu" <evaandoli@dodo.com.au> wrote in message
 news:f35qft$v25$1@build.eclipse.org...
 > Hi,
 >
 > I have a top level XML document that contains references to other XML
 > document of the same format.
 > Each document has a list of values which have various attibutes.
 > I want to create an aggregate of these values so I can interrigate then
 > and ensure some of their attributes are the same.
 >
 > I used an iterate and load combination to get all the XML documents.
 >
 > But I'm unsure how to create the attrigation so I can query from the top
 > level.
 >
 > Any pointers,
 >
 > Stu
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.06831 seconds