XML Shredding help.
declare @x xml = '
<obj xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:vim25"
versionId="5.5" xsi:type="ArrayOfGuestStackInfo">
<GuestStackInfo xsi:type="GuestStackInfo">
<dnsConfig>
<dhcp>false</dhcp>
<hostName>YODA</hostName>
<domainName>yoda.starwars.com</domainName>
<ipAddress>127.0.0.1</ipAddress>
<ipAddress>8.8.8.8</ipAddress>
<ipAddress>9.9.9.9</ipAddress>
<searchDomain>laya.starwars.com</searchDomain>
</dnsConfig></GuestStackInfo>
</obj>'
;WITH XMLNAMESPACES ('http://www.w3.org/2001/XMLSchema' AS xsd,'http://www.w3.org/2001/XMLSchema-instance' AS xsi,'ArrayOfKeyAnyValue' as type,'urn:vim25' as [default])
SELECT t.u.value('(./default:dnsConfig)[1]','varchar(500)') as [Key]
FROM @x.nodes('/default:obj/default:GuestStackInfo')t(u)
undesirable output:
falseYODAyoda.starwars.com127.0.0.18.8.8.89.9.9.9laya.starwars.com
I want this output:
dhcp Hostname domainname ipaddress searchDomain
false YODA yoda.starwars.com 127.0.0.1 laya.starwars.com
false YODA yoda.starwars.com 8.8.8.8 laya.starwars.com
false YODA yoda.starwars.com 9.9.9.9 laya.starwars.com
XML name spaces confuses me. Please help. Thanks in advance.
-scott
scott
;WITH XMLNAMESPACES ('http://www.w3.org/2001/XMLSchema' AS xsd,'http://www.w3.org/2001/XMLSchema-instance'
AS xsi,'ArrayOfKeyAnyValue' as type,'urn:vim25' as [default])
SELECT t.u.value('(./default:dhcp/text())[1]','varchar(5)') as DHCP,
t.u.value('(./default:hostName/text())[1]','varchar(50)') as hostName,
t.u.value('(./default:domainName/text())[1]','varchar(500)') as domainName,
t.u.value('(./default:searchDomain/text())[1]','varchar(500)') as searchDomain,
IP.c.value('(./text())[1]', 'varchar(15)') AS IPaddress
FROM @x.nodes('/default:obj/default:GuestStackInfo/default:dnsConfig')t(u)
OUTER APPLY t.u.nodes('default:ipAddress') IP(c)
Erland Sommarskog, SQL Server MVP, [email protected]
Similar Messages
-
How can I execute this command:
shred sample_db products.dad products.xml
In my application I am connecting to db2 using the jcc/jdbc driver..so I want be able to connect to the database and then call a method for example:
insertXmlFile(String dadFile,String xmlFile) wich I want to do the same as the command shred sample_db products.dad products.xml.
can anyone help me please?
tnxYes, Java has had built-in XML parsing packages since version 1.4.isn't that package just for JAXP. and i thought JAXP would still requires an XML parser to parse th exml document. I know 1.4 came with the Crimson Parser..and 1.5 is shipped with the Xerces 2 parser...
the JAXP code run, because it's using the crimson parser shipped..but what about other JVM vendor? if they don't include an XML parse and just the JAXP, then, wouldn't the application would not work? -
ORA-01427: using XML Shredding query
Oracle version: 10.2.0.4.0
Hello. I want to shred the following XML into relational form so I can insert the results into a table:
<?xml version="1.0" encoding="UTF-8"?>
<ContentEnvelope xmlns="http://data.schemas.tfn.orgname.com/Envelope/2007-10-29/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://data.schemas.tfn.orgname.com/Envelope/2007-10-29/Tests.xsd" majorVersion="0" minorVersion="0.1" publishingStyle="FULL">
<Header>
<Info>
<Id>2563653D10DF394085FED1CC358E2C</Id>
<TimeStamp>2008-04-17 23:51:17</TimeStamp>
</Info>
</Header>
<Body majorVersion="0" minorVersion="0.1" contentSet="Tests">
<ContentItem action="Insert">
<Data>
<MAElement dealId="1864795040">
<TestCurrencyCode>STG</TestCurrencyCode>
<TestStatusCode>P</TestStatusCode>
<TestAmtOrIDDate>2007-05-07</TestAmtOrIDDate>
<TestCreateDate>2007-05-04</TestCreateDate>
<TestUpdateDate>2008-03-27</TestUpdateDate>
<MAElementStructure>
<TestEVExcCpInf>13016605000</TestEVExcCpInf>
<TempEVAtAmt>8864948000</TempEVAtAmt>
<NOSORFI>33200000</NOSORFI>
<POBAPM>76</POBAPM>
<CSIDdBA>201049088</CSIDdBA>
<CSSTBA>1256556797</CSSTBA>
<SpinoffEstSP>0</SpinoffEstSP>
<STOptionAverageExercisePCR>3.56</STOptionAverageExercisePCR>
<STOptionProceedsBasedOnAverageExercisePCR>113030000</STOptionProceedsBasedOnAverageExercisePCR>
<POOrder>51.245</POOrder>
<POOther>0</POOther>
<POST>48.755</POST>
<POPprOwnedAfterTR>0</POPprOwnedAfterTR>
<POAcqPprIDd>23.892</POAcqPprIDd>
<POPprHeldBAAtAdDate>0</POPprHeldBAAtAdDate>
<SPPaidBAForXYZPpr>6.965</SPPaidBAForXYZPpr>
<PctgChangeFinalORFPCRToINTORFPCR>0</PctgChangeFinalORFPCRToINTORFPCR>
<POPprAcqSeekingToOwnAfterTR>100</POPprAcqSeekingToOwnAfterTR>
<POPprTRedInTRORF>0</POPprTRedInTRORF>
<PctgOwnedByXYZPostSymb>24</PctgOwnedByXYZPostSymb>
<EVOfOrder>4542393000</EVOfOrder>
<EVOfCMST>4321751000</EVOfCMST>
<EVOfTempBasedOnMMtt>10017260000</EVOfTempBasedOnMMtt>
<EVOfTempAtStartDate>10017260000</EVOfTempAtStartDate>
<PctOfPprSTInTRORF>0</PctOfPprSTInTRORF>
</MAElementStructure>
<IsCLLBreached>false</IsCLLBreached>
<CostToSpndCS>8751114000</CostToSpndCS>
<CostToSpndConvertibleSRCS>113030000</CostToSpndConvertibleSRCS>
<FormOfTestCode>M</FormOfTestCode>
<INTReceptionCode>A</INTReceptionCode>
<MAElementTypeCode>DI</MAElementTypeCode>
<INTORFPCR>6965000</INTORFPCR>
<CLLStatus>P</CLLStatus>
<TargetTermnationFee>87</TargetTermnationFee>
<TestEV>8864144000</TestEV>
<SourceUsedForTestValCode>RNS</SourceUsedForTestValCode>
<TestAttitudeCode>F</TestAttitudeCode>
<RankEVOfTR>9185144000</RankEVOfTR>
<ImpliedTestEV>8751918000</ImpliedTestEV>
<TestEVExcludingCpinFun>8864144000</TestEVExcludingCpinFun>
<TestEVExcludingXtrFlown>8864144000</TestEVExcludingXtrFlown>
<IsStandardRankingEligible>true</IsStandardRankingEligible>
<TRTypeCode>MERG</TRTypeCode>
<TestEVExcludingFlownXtrAtTestStartDate>17628123000</TestEVExcludingFlownXtrAtTestStartDate>
<GTmanTTFees>86711000</GTmanTTFees>
<SymmetricCLL>false</SymmetricCLL>
<TestParticipants>
<TestParticipant dealParticipantId="76132M" participantRoleCode="TARGET">
<TerminationFee>86800000</TerminationFee>
<TestMentors>
<TestMentor mentorOrganizationId="09253U" mentorTypeCode="FINANCIAL">
<MentorAddedDate>2007-05-10</MentorAddedDate>
<MentorRoleAndCredit>something here</MentorRoleAndCredit>
<MentorRoleAndCreditLongDescription>another desc</MentorRoleAndCreditLongDescription>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<TTMentorFee>0</TTMentorFee>
<TestMentorAssignments>
<TestMentorAssignment mentorAssignmentCode="FA"/>
<TestMentorAssignment mentorAssignmentCode="FO"/>
</TestMentorAssignments>
</TestMentor>
<TestMentor mentorOrganizationId="11524W" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-06-04</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<MentorLegalCredit>18266.496</MentorLegalCredit>
<TTMentorFee>0</TTMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="172967" mentorTypeCode="FINANCIAL">
<MentorAddedDate>2007-05-15</MentorAddedDate>
<MentorRoleAndCredit>another thing</MentorRoleAndCredit>
<MentorRoleAndCreditLongDescription>some desc</MentorRoleAndCreditLongDescription>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<TTMentorFee>0</TTMentorFee>
<TestMentorAssignments>
<TestMentorAssignment mentorAssignmentCode="EC"/>
<TestMentorAssignment mentorAssignmentCode="FA"/>
</TestMentorAssignments>
</TestMentor>
<TestMentor mentorOrganizationId="23868X" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-05-10</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<MentorLegalCredit>18266.496</MentorLegalCredit>
<TTMentorFee>0</TTMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="53581E" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-06-05</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<MentorLegalCredit>18266.496</MentorLegalCredit>
<TTMentorFee>0</TTMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="61698W" mentorTypeCode="FINANCIAL">
<MentorAddedDate>2007-05-15</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<TestMentorAssignments>
<TestMentorAssignment mentorAssignmentCode="EC"/>
<TestMentorAssignment mentorAssignmentCode="FA"/>
</TestMentorAssignments>
</TestMentor>
<TestMentor mentorOrganizationId="61750L" mentorTypeCode="FINANCIAL">
<MentorAddedDate>2007-05-14</MentorAddedDate>
<MentorRoleAndCredit>$ 18,266.496 - CITIGROUP - Adv,ECM</MentorRoleAndCredit>
<MentorRoleAndCreditLongDescription>plenty desc</MentorRoleAndCreditLongDescription>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<TTMentorFee>0</TTMentorFee>
<TestMentorAssignments>
<TestMentorAssignment mentorAssignmentCode="FA"/>
</TestMentorAssignments>
</TestMentor>
<TestMentor mentorOrganizationId="83117R" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-05-18</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<MentorLegalCredit>18266.496</MentorLegalCredit>
<TTMentorFee>0</TTMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="86065K" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-05-20</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<MentorLegalCredit>18266.496</MentorLegalCredit>
<TTMentorFee>0</TTMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="90248E" mentorTypeCode="FINANCIAL">
<MentorAddedDate>2007-05-10</MentorAddedDate>
<MentorRoleAndCredit>$ 18,266.496 - UBS-INV-BANK - Adv,ECM,F Opin</MentorRoleAndCredit>
<MentorRoleAndCreditLongDescription>yet another desc</MentorRoleAndCreditLongDescription>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<TTMentorFee>0</TTMentorFee>
<TestMentorAssignments>
<TestMentorAssignment mentorAssignmentCode="EC"/>
<TestMentorAssignment mentorAssignmentCode="FA"/>
<TestMentorAssignment mentorAssignmentCode="FO"/>
</TestMentorAssignments>
</TestMentor>
<TestMentor mentorOrganizationId="94864A" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-05-23</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>9220000</GTmanImputedMentorFee>
<MentorLegalCredit>18266.496</MentorLegalCredit>
<TTMentorFee>0</TTMentorFee>
</TestMentor>
</TestMentors>
<TestParticipantOtherMMtt>
<InsurancePremiums>0</InsurancePremiums>
<TTJJDeposits>0</TTJJDeposits>
</TestParticipantOtherMMtt>
</TestParticipant>
<TestParticipant dealParticipantId="884903" participantRoleCode="ACQUIRER">
<TerminationFee>86800000</TerminationFee>
<TestMentors>
<TestMentor mentorOrganizationId="01751J" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-06-06</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
<MentorLegalCredit>18266.496</MentorLegalCredit>
<TTMentorFee>0</TTMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="063671" mentorTypeCode="FINANCIAL">
<MentorAddedDate>2007-05-23</MentorAddedDate>
<MentorRoleAndCredit>$ 18,266.496 - BANK-MONTREAL - Adv</MentorRoleAndCredit>
<MentorRoleAndCreditLongDescription>abc</MentorRoleAndCreditLongDescription>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
<TTMentorFee>0</TTMentorFee>
<TestMentorAssignments>
<TestMentorAssignment mentorAssignmentCode="FA"/>
</TestMentorAssignments>
</TestMentor>
<TestMentor mentorOrganizationId="07383Z" mentorTypeCode="FINANCIAL">
<MentorAddedDate>2007-05-10</MentorAddedDate>
<MentorRoleAndCredit>$ 18,266.496 - BEAR - Adv,F Opin</MentorRoleAndCredit>
<MentorRoleAndCreditLongDescription>efg</MentorRoleAndCreditLongDescription>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
<TTMentorFee>0</TTMentorFee>
<TestMentorAssignments>
<TestMentorAssignment mentorAssignmentCode="FA"/>
<TestMentorAssignment mentorAssignmentCode="FO"/>
</TestMentorAssignments>
</TestMentor>
<TestMentor mentorOrganizationId="09962E" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-06-13</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="35645K" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-11-27</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="35805N" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-06-15</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="52751T" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-11-13</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="71354R" mentorTypeCode="FINANCIAL">
<MentorAddedDate>2007-05-10</MentorAddedDate>
<MentorRoleAndCredit>$ 18,266.496 - PERELLA-WP - Adv</MentorRoleAndCredit>
<MentorRoleAndCreditLongDescription>hij</MentorRoleAndCreditLongDescription>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
<TTMentorFee>0</TTMentorFee>
<TestMentorAssignments>
<TestMentorAssignment mentorAssignmentCode="FA"/>
</TestMentorAssignments>
</TestMentor>
<TestMentor mentorOrganizationId="74897K" mentorTypeCode="FINANCIAL">
<MentorAddedDate>2007-05-23</MentorAddedDate>
<MentorRoleAndCredit>$ 18,266.496 - RBC-CAP-MKTS - Adv</MentorRoleAndCredit>
<MentorRoleAndCreditLongDescription>klm</MentorRoleAndCreditLongDescription>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
<TTMentorFee>0</TTMentorFee>
<TestMentorAssignments>
<TestMentorAssignment mentorAssignmentCode="FA"/>
</TestMentorAssignments>
</TestMentor>
<TestMentor mentorOrganizationId="82086P" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-09-06</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="83014W" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-06-01</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
<MentorLegalCredit>18266.496</MentorLegalCredit>
<TTMentorFee>0</TTMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="89089Q" mentorTypeCode="LEGAL">
<MentorAddedDate>2007-06-04</MentorAddedDate>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
<MentorLegalCredit>18266.496</MentorLegalCredit>
<TTMentorFee>0</TTMentorFee>
</TestMentor>
<TestMentor mentorOrganizationId="89117A" mentorTypeCode="FINANCIAL">
<MentorAddedDate>2007-05-15</MentorAddedDate>
<MentorRoleAndCredit>$ 18,266.496 - TD-SRCS - Adv</MentorRoleAndCredit>
<MentorRoleAndCreditLongDescription>nop</MentorRoleAndCreditLongDescription>
<RankMentorMultiplierEV>1</RankMentorMultiplierEV>
<IsRankingIneligible>false</IsRankingIneligible>
<GTmanImputedMentorFee>8122140</GTmanImputedMentorFee>
<TTMentorFee>0</TTMentorFee>
<TestMentorAssignments>
<TestMentorAssignment mentorAssignmentCode="FA"/>
</TestMentorAssignments>
</TestMentor>
</TestMentors>
<TestParticipantOtherMMtt>
<InsurancePremiums>0</InsurancePremiums>
<TTJJDeposits>0</TTJJDeposits>
</TestParticipantOtherMMtt>
</TestParticipant>
</TestParticipants>
<MAElementMultiples>
<PCRDocPremiumToDocEVDiff>5656.198</PCRDocPremiumToDocEVDiff>
<ORFPCRToEpsDiff>30.819</ORFPCRToEpsDiff>
<ORFPCRToDocEVDiff>57.562</ORFPCRToDocEVDiff>
<TestEVToSalesDiff>3.454</TestEVToSalesDiff>
<RankEVToEbitdaDiff>23.982</RankEVToEbitdaDiff>
<RankEVToEbitDiff>37.955</RankEVToEbitDiff>
<RankEVToNetTKsDiff>53.402</RankEVToNetTKsDiff>
<RankEVToNetGuideDiff>31.349</RankEVToNetGuideDiff>
<RankEVToSalesDiff>3.58</RankEVToSalesDiff>
<TestEVToEbitdaDiff>23.144</TestEVToEbitdaDiff>
<TestEVToEbitDiff>36.629</TestEVToEbitDiff>
<TestEVToCMTempDiff>51.536</TestEVToCMTempDiff>
<TestEVToNetTKsDiff>51.536</TestEVToNetTKsDiff>
<TestEVToNetGuideDiff>30.253</TestEVToNetGuideDiff>
<TestEVExcludingFlownXtrToEbitdaDiff>23.144</TestEVExcludingFlownXtrToEbitdaDiff>
<TestEVExcludingFlownXtrToEbitDiff>36.629</TestEVExcludingFlownXtrToEbitDiff>
<TestEVExcludingFlownXtrToNetGuideDiff>30.253</TestEVExcludingFlownXtrToNetGuideDiff>
<TestEVExcludingFlownXtrToPretaxGuideDiff>27.963</TestEVExcludingFlownXtrToPretaxGuideDiff>
<TestEVExcludingFlownXtrToSalesDiff>3.454</TestEVExcludingFlownXtrToSalesDiff>
<ImpliedTestEVToCMTempDiff>50.883</ImpliedTestEVToCMTempDiff>
<ImpliedTestEVToNetGuideDiff>29.87</ImpliedTestEVToNetGuideDiff>
<ImpliedTestEVToPretaxGuideDiff>27.609</ImpliedTestEVToPretaxGuideDiff>
</MAElementMultiples>
<TestHistoryEvents>
<TestHistoryEvent>
<HistoryEventDate>2007-05-04 00:00:00</HistoryEventDate>
<TestHistoryEventDescriptions>
<TestHistoryEventDescription>
<HistoryEventDescription>Some plans arerumored</HistoryEventDescription>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestHistoryEventDescription>
</TestHistoryEventDescriptions>
</TestHistoryEvent>
<TestHistoryEvent>
<HistoryEventDate>2007-05-07 00:00:00</HistoryEventDate>
<TestHistoryEventDescriptions>
<TestHistoryEventDescription>
<HistoryEventDescription>Some plans aredisclosed</HistoryEventDescription>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestHistoryEventDescription>
</TestHistoryEventDescriptions>
</TestHistoryEvent>
<TestHistoryEvent>
<HistoryEventCurrencyCode>STG</HistoryEventCurrencyCode>
<HistoryEventDate>2007-05-08 00:00:00</HistoryEventDate>
<HistoryEventDateOfExchangeRate>2007-05-08 00:00:00</HistoryEventDateOfExchangeRate>
<TestHistoryEventDescriptions>
<TestHistoryEventDescription>
<HistoryEventDescription>Terms are disclosed</HistoryEventDescription>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestHistoryEventDescription>
</TestHistoryEventDescriptions>
</TestHistoryEvent>
<TestHistoryEvent>
<HistoryEventCurrencyCode>STG</HistoryEventCurrencyCode>
<HistoryEventDate>2007-05-15 00:00:00</HistoryEventDate>
<HistoryEventDateOfExchangeRate>2007-05-08 00:00:00</HistoryEventDateOfExchangeRate>
<TestHistoryEventDescriptions>
<TestHistoryEventDescription>
<HistoryEventDescription>Symb agreement is disclosed</HistoryEventDescription>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestHistoryEventDescription>
</TestHistoryEventDescriptions>
</TestHistoryEvent>
<TestHistoryEvent>
<HistoryEventCurrencyCode>STG</HistoryEventCurrencyCode>
<HistoryEventDate>2007-05-15 00:00:00</HistoryEventDate>
<HistoryEventDateOfExchangeRate>2007-05-08 00:00:00</HistoryEventDateOfExchangeRate>
<TestHistoryEventDescriptions>
<TestHistoryEventDescription>
<HistoryEventDescription>Thomson & Reuters' boardsrecommend merger</HistoryEventDescription>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestHistoryEventDescription>
</TestHistoryEventDescriptions>
</TestHistoryEvent>
</TestHistoryEvents>
<TestCharacteristics>
<TestCharacteristicTypeCode>ISV</TestCharacteristicTypeCode>
<TestCharacteristicTypeCode>PRD</TestCharacteristicTypeCode>
<TestCharacteristicTypeCode>RUMOR</TestCharacteristicTypeCode>
<TestCharacteristicTypeCode>SCHEME</TestCharacteristicTypeCode>
<TestCharacteristicTypeCode>SFBOR</TestCharacteristicTypeCode>
<TestCharacteristicTypeCode>SFBRIDGE</TestCharacteristicTypeCode>
<TestCharacteristicTypeCode>SFCORP</TestCharacteristicTypeCode>
<TestCharacteristicTypeCode>STR</TestCharacteristicTypeCode>
<TestCharacteristicTypeCode>SYN</TestCharacteristicTypeCode>
<IsRankingEV>true</IsRankingEV>
<IsPortfolioCompanyActivity>false</IsPortfolioCompanyActivity>
<IsDefensiveWhiteSquire>false</IsDefensiveWhiteSquire>
</TestCharacteristics>
<MAElementPurchs>
<TestPurch>
<PurchTypeCode>CASH</PurchTypeCode>
<PurchCategory>OFFERED</PurchCategory>
</TestPurch>
<TestPurch>
<PurchTypeCode>ORD</PurchTypeCode>
<PurchCategory>OFFERED</PurchCategory>
</TestPurch>
<TestPurch>
<PurchTypeCode>OPT</PurchTypeCode>
<PurchCategory>SOUGHT</PurchCategory>
</TestPurch>
<TestPurch>
<PurchTypeCode>ORD</PurchTypeCode>
<PurchCategory>SOUGHT</PurchCategory>
</TestPurch>
</MAElementPurchs>
<TestDescriptions>
<TestDescription>
<DescriptionCode>MULT_NOTES</DescriptionCode>
<DescriptionText>Here is some text</DescriptionText>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestDescription>
<TestDescription>
<DescriptionCode>OPTIONS_DESC</DescriptionCode>
<DescriptionText>and some more</DescriptionText>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestDescription>
<TestDescription>
<DescriptionCode>PURPOSE</DescriptionCode>
<DescriptionText>it goes on</DescriptionText>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestDescription>
<TestDescription>
<DescriptionCode>SF</DescriptionCode>
<DescriptionText>and on</DescriptionText>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestDescription>
<TestDescription>
<DescriptionCode>SYNOPSIS</DescriptionCode>
<DescriptionText>and on for a while</DescriptionText>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestDescription>
</TestDescriptions>
<TestDates>
<TestDate dateTypeCode="DATEEFFEXP">
<TestDateEV>2008-04-17</TestDateEV>
</TestDate>
<TestDate dateTypeCode="DATEANNORIG">
<TestDateEV>2007-05-04</TestDateEV>
</TestDate>
<TestDate dateTypeCode="DATECOM">
<TestDateEV>2007-05-07</TestDateEV>
</TestDate>
<TestDate dateTypeCode="DATEVAL">
<TestDateEV>2007-05-08</TestDateEV>
</TestDate>
<TestDate dateTypeCode="SIG_UPDATE">
<TestDateEV>2007-05-23</TestDateEV>
</TestDate>
</TestDates>
<RegulatoryAgencies>
<RegulatoryAgencyCode>EC</RegulatoryAgencyCode>
<RegulatoryAgencyCode>RA</RegulatoryAgencyCode>
</RegulatoryAgencies>
<TestInfoSources>
<TestInfoSource dealInfoSourceCode="WS">
<TestInfoSourceTypeCode>FINSRC</TestInfoSourceTypeCode>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="WS">
<TestInfoSourceTypeCode>A</TestInfoSourceTypeCode>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="RT">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-04</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="WS">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-04</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="RNS">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-08</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="20F">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-08</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="AM">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-08</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="RNS">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-15</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="AM">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-15</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="6K">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-06-01</TestInfoSourceDate>
</TestInfoSource>
</TestInfoSources>
</MAElement>
</Data>
</ContentItem>
<ContentItem action="Insert">
<Data>
<MAElement dealId="1864899020">
<TestStatusCode>P</TestStatusCode>
<TestAOrIDate>2008-02-01</TestAOrIDate>
<TestCreateDate>2007-05-04</TestCreateDate>
<TestUpdateDate>2008-04-15</TestUpdateDate>
<MAElementStructure>
<CSSTBA>1469486513</CSSTBA>
<SpinoffEstSP>0</SpinoffEstSP>
<POOrder>50</POOrder>
<POOther>0</POOther>
<POST>50</POST>
<POPprOwnedAfterTR>0</POPprOwnedAfterTR>
<POAcqPprIDd>0</POAcqPprIDd>
<POPprHeldBAAtAdDate>0</POPprHeldBAAtAdDate>
<SPPaidBAForXYZPpr>31</SPPaidBAForXYZPpr>
<PctgChangeFinalORFPCRToINTORFPCR>0</PctgChangeFinalORFPCRToINTORFPCR>
<POPprAcqSeekingToOwnAfterTR>100</POPprAcqSeekingToOwnAfterTR>
<POPprTRedInTRORF>0</POPprTRedInTRORF>
<EVOfOrder>21855801000</EVOfOrder>
<EVOfCMST>21855800000</EVOfCMST>
<IsEVOfUndeterminedPurchEstimates>false</IsEVOfUndeterminedPurchEstimates>
<EVOfTempBasedOnMMtt>43537945000</EVOfTempBasedOnMMtt>
<EVOfTempAtStartDate>43537945000</EVOfTempAtStartDate>
<PctOfPprSTInTRORF>0</PctOfPprSTInTRORF>
</MAElementStructure>
<IsCLLBreached>false</IsCLLBreached>
<IsChoiceOfPurch>true</IsChoiceOfPurch>
<CostToSpndCS>41429324000</CostToSpndCS>
<CostToSpndConvertibleSRCS>2282277000</CostToSpndConvertibleSRCS>
<FormOfTestCode>M</FormOfTestCode>
<INTReceptionCode>U</INTReceptionCode>
<MAElementTypeCode>DI</MAElementTypeCode>
<INTORFPCR>31000000</INTORFPCR>
<CLLStatus>P</CLLStatus>
<TestEV>43711601000</TestEV>
<SourceUsedForTestValCode>AM</SourceUsedForTestValCode>
<TestAttitudeCode>U</TestAttitudeCode>
<RankEVOfTR>41860117000</RankEVOfTR>
<ImpliedTestEV>45554082000</ImpliedTestEV>
<TestEVExcludingCpinFun>43711601000</TestEVExcludingCpinFun>
<TestEVExcludingXtrFlown>43711601000</TestEVExcludingXtrFlown>
<IsStandardRankingEligible>true</IsStandardRankingEligible>
<TRTypeCode>MERG</TRTypeCode>
<TestEVExcludingFlownXtrAtTestStartDate>43711601000</TestEVExcludingFlownXtrAtTestStartDate>
<GTmanTTFees>0</GTmanTTFees>
<SymmetricCLL>false</SymmetricCLL>
<TestParticipants>
<TestParticipant dealParticipantId="594918" participantRoleCode="ACQUIRER">
<TestParticipantOtherMMtt>
<InsurancePremiums>0</InsurancePremiums>
<TTJJDeposits>0</TTJJDeposits>
</TestParticipantOtherMMtt>
</TestParticipant>
<TestParticipant dealParticipantId="984332" participantRoleCode="TARGET">
<TestParticipantOtherMMtt>
<InsurancePremiums>0</InsurancePremiums>
<TTJJDeposits>-921927000</TTJJDeposits>
</TestParticipantOtherMMtt>
</TestParticipant>
</TestParticipants>
<MAElementMultiples>
<PCRDocPremiumToDocEVDiff>350.385</PCRDocPremiumToDocEVDiff>
<ORFPCRToEpsDiff>45.667</ORFPCRToEpsDiff>
<ORFPCRToDocEVDiff>4.504</ORFPCRToDocEVDiff>
<TestEVToSalesDiff>119.186</TestEVToSalesDiff>
<RankEVToNetTKsDiff>4.566</RankEVToNetTKsDiff>
<RankEVToNetGuideDiff>43.733</RankEVToNetGuideDiff>
<RankEVToSalesDiff>114.137</RankEVToSalesDiff>
<TestEVToCMTempDiff>4.772</TestEVToCMTempDiff>
<TestEVToNetTKsDiff>4.767</TestEVToNetTKsDiff>
<TestEVToNetGuideDiff>45.667</TestEVToNetGuideDiff>
<TestEVExcludingFlownXtrToNetGuideDiff>45.667</TestEVExcludingFlownXtrToNetGuideDiff>
<TestEVExcludingFlownXtrToPretaxGuideDiff>393.961</TestEVExcludingFlownXtrToPretaxGuideDiff>
<TestEVExcludingFlownXtrToSalesDiff>119.186</TestEVExcludingFlownXtrToSalesDiff>
<ImpliedTestEVToCMTempDiff>4.973</ImpliedTestEVToCMTempDiff>
<ImpliedTestEVToNetGuideDiff>47.592</ImpliedTestEVToNetGuideDiff>
<ImpliedTestEVToPretaxGuideDiff>410.567</ImpliedTestEVToPretaxGuideDiff>
</MAElementMultiples>
<TestHistoryEvents>
<TestHistoryEvent>
<HistoryEventDate>2007-05-04 00:00:00</HistoryEventDate>
<TestHistoryEventDescriptions>
<TestHistoryEventDescription>
<HistoryEventDescription>Symb negotiations are rumored</HistoryEventDescription>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestHistoryEventDescription>
</TestHistoryEventDescriptions>
</TestHistoryEvent>
</TestHistoryEvents>
<TestCharacteristics>
<TestCharacteristicTypeCode>EPM</TestCharacteristicTypeCode>
<TestCharacteristicTypeCode>RUMOR</TestCharacteristicTypeCode>
<IsRankingEV>true</IsRankingEV>
<IsPortfolioCompanyActivity>false</IsPortfolioCompanyActivity>
<IsDefensiveWhiteSquire>false</IsDefensiveWhiteSquire>
</TestCharacteristics>
<MAElementPurchs>
<TestPurch>
<PurchTypeCode>NA</PurchTypeCode>
<PurchCategory>OFFERED</PurchCategory>
</TestPurch>
<TestPurch>
<PurchTypeCode>COM</PurchTypeCode>
<PurchCategory>SOUGHT</PurchCategory>
</TestPurch>
</MAElementPurchs>
<TestDescriptions>
<TestDescription>
<DescriptionCode>PURPOSE</DescriptionCode>
<DescriptionText>this field is large</DescriptionText>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestDescription>
<TestDescription>
<DescriptionCode>SYNOPSIS</DescriptionCode>
<DescriptionText>yes</DescriptionText>
<LanguageCode>en</LanguageCode>
<LanguageScriptCode>en-US</LanguageScriptCode>
</TestDescription>
</TestDescriptions>
<TestDates>
<TestDate dateTypeCode="DATECOM">
<TestDateEV>2008-01-31</TestDateEV>
</TestDate>
<TestDate dateTypeCode="SIG_UPDATE">
<TestDateEV>2008-02-11</TestDateEV>
</TestDate>
<TestDate dateTypeCode="DATEVAL">
<TestDateEV>2008-02-01</TestDateEV>
</TestDate>
<TestDate dateTypeCode="DATEEFFEXP">
<TestDateEV>2008-12-31</TestDateEV>
</TestDate>
</TestDates>
<TestInfoSources>
<TestInfoSource dealInfoSourceCode="WS">
<TestInfoSourceTypeCode>A</TestInfoSourceTypeCode>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="WS">
<TestInfoSourceTypeCode>FINSRC</TestInfoSourceTypeCode>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="NYP">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-04</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="10K">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-04</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="10Q">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-04</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="BSW">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-04</TestInfoSourceDate>
</TestInfoSource>
<TestInfoSource dealInfoSourceCode="NR">
<TestInfoSourceTypeCode>SOURCE</TestInfoSourceTypeCode>
<TestInfoSourceDate>2007-05-04</TestInfoSourceDate>
</TestInfoSource>
</TestInfoSources>
</MAElement>
</Data>
</ContentItem>
</Body>
</ContentEnvelope>
This is what I've tried (subset_2.xml is the XML above):
DROP TABLE ray_test_6;
CREATE TABLE ray_test_6
(id NUMBER
,data XMLTYPE
INSERT INTO ray_test_6
(id
,data
VALUES
(1
,XMLTYPE(BFILENAME('SDI_RAY','subset_2.xml'), NLS_CHARSET_ID('AL32UTF8'))
Now, I try to shred the XML using the following statement to get all TestStatusCode nodes:
SELECT *
FROM XMLTABLE('//Body/ContentItem/Data/MAElement'
PASSING (SELECT VALUE(e)
FROM ray_test_6
,TABLE(XMLSEQUENCE(EXTRACT(data
,'ContentEnvelope/*'
,'xmlns="http://data.schemas.tfn.orgname.com/Envelope/2007-10-29/"'))) e)
COLUMNS prod VARCHAR2(20) PATH 'TestStatusCode');
but I get the following error:
PASSING (SELECT VALUE(e)
ERROR at line 3:
ORA-01427: single-row subquery returns more than one row
I can't see what I'm doing wrong. Can anyone help?
Thanks,
Raytry this
select x.*
from ray_test_6 r
,xmltable(xmlnamespaces(default 'http://data.schemas.tfn.orgname.com/Envelope/2007-10-29/')
,'for $i in /ContentEnvelope/Body/ContentItem/Data/MAElement
return $i'
passing r.data
columns status varchar2(30) path 'TestStatusCode'
,upd_date date path 'TestUpdateDate'
,crt_date date path 'TestCreateDate') x; Ants -
Hi all,
I am building report using xml publisher. Problem i facing was ,
1. I created the template in RTF and attached to data definition
for eg: my rtf is
sno item quantity price ( I created this field in table structure and mapped to xml data)
Total Price ( this also i am getting from data definition)
The below is sample constant sentence for my client and typed just below Total Price ( field i mentioned above)
Inspected By Approved By
1)
________________________________ 1)________________________________ Store Incharge : ______________________
2)
________________________________ 2) ________________________________ Received : _______________________
3)
________________________________ 3 ________________________________ Prepared By : _______________________
NOTE : ABOVE MENTIONED LINES ARE CONSTANT ONE.
2. When i ran the report, if my data definition return 5 lines means , i am getting PDF output Correctly in single page (1st page)
3) If my data definition returns lines more than 8 lines means, I am getting PDF output with Table structure values with item, in 1 st page and Constant sentence in 2nd page of PDF
4) If my data definition returns lines between 5 and 8 means, I am getting PDf output with table structure values with item and some of Constant sentence of my client in 1 st page and few of the constanst sentence in 2nd page.
Actually my need
Even if the data definitions exceeds more than 5 lines the constant sentence should be placed either in the first page or in the next page based on the no. of lines in the data definition.
How to resolve this... any approach most welcome. Wat changes i have to make.Hi Shruti,
You can start with the BI publisher page on OTN http://www.oracle.com/technology/products/xml-publisher/index.html.
Check out the tutorials (Oracle by Example). There's lot of good information out there. Check out the BI publisher guide here:http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html
Search the forum or post questions about any specific questions you may have about formatting numbers and dates.
Hope this helps.
Thanks! -
Hi,
We currently have a payslip report that has been developed using Oracle reports, but for this to run we have to change our NLS_LANG setting from UTF8 to WE8ISO8859P1.
The problem with this is to apply patches Oracle have told us we need to have the NLS_LANG set to UTF8.
As a result Oracle have said that:
The only available workaround for generating PDF on a UTF8 character set instance is to install and utilize the XML Publisher product or upgrade to E-Business Suite to Release 12.
We don't have any plans to upgrade to Release 12, so I am looking to use XML Publisher. I have a couple of questions:
Is this an add-on?
Where is the best place to obtain navigation guides and tutorials to teach myself this?
I have had a look at some of the pre-defined templates already and I am not sure how to create my own rtf file so that my required fields are passed to the template.
Any help would be greatly appreciated
Many Thanks
MartinHi Shruti,
You can start with the BI publisher page on OTN http://www.oracle.com/technology/products/xml-publisher/index.html.
Check out the tutorials (Oracle by Example). There's lot of good information out there. Check out the BI publisher guide here:http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html
Search the forum or post questions about any specific questions you may have about formatting numbers and dates.
Hope this helps.
Thanks! -
Error in my build.xml file (help with spotting syntax error requested)
Hi
I have written an XML file called build.xml for one of my applications. My XML editor complains that there is an error at the last line of the XML file, but I simply find it unable to correct the errror.
It says:
Fatal error:Build.xml[76:3-9]: End-Tag without start-tag
The XML file itself:
<project basedir="." default="deploy" name="concepts">
<property name="src.dir" value="src"></property>
<property name="build.dir" value="${basedir}/build"></property>
<property name="build.lib" value="${build.dir}/lib"></property>
<property name="dist.dir" value="dist"></property>
<property name="classes.dir" value="${build.dir}/classes"></property>
<property name="build.etc" value="${src.dir}/etc"></property>
<property name="build.resources" value="${src.dir}/resources"></property>
<property name="lib.dir" value="lib"></property>
<property name="web-inf.dir" value="WEB-INF"></property>
<property name="war.name" value="concepts"></property>
<property file="../common.properties"></property>
<target name="init">
<mkdir dir="${build.dir}"></mkdir>
<mkdir dir="${classes.dir}"></mkdir>
<mkdir dir="${dist.dir}"></mkdir>
</target>
<target name="deploy" depends="clover-yes, clover-no">
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
<include name="org/apache/commons/fileupload/**/*.java" />
<include name="com/portalbook/portlets/**/*.java" />
<include name="com/portalbook/portlets/content/**/*.java" />
</javac>
<target depends="init" name="compile">
<javac debug="true" deprecation="true" destdir="${classes.dir}" optimize="false">
<src>
<pathelement location="${src.dir}"></pathelement>
</src>
<classpath>
<fileset dir="${lib.dir}">
<include name="*.jar">
</include>
</fileset>
</classpath>
</javac>
</target>
<target depends="compile" name="war">
<war destfile="${dist.dir}/${war.name}.war" webxml="WEB-INF/web.xml">
<classes dir="${classes.dir}"></classes>
<lib dir="${lib.dir}"></lib>
<webinf dir="${web-inf.dir}"></webinf>
</war>
</target>
<!-- create the portal-concepts-lib.jar -->
<jar jarfile="${build.lib}/concepts-lib.jar">
<fileset dir="${classes.dir}"></fileset>
</jar>
<jar jarfile="${build.lib}/concepts.war" manifest="${build.etc}/concepts-war.mf">
<fileset dir="${build.resources}/concepts-war"></fileset>
</jar>
<!-- concepts.ear -->
<copy todir="${build.resources}/concepts-ear">
<fileset dir="${build.lib}" includes="concepts.war,concepts-lib.jar"></fileset>
</copy>
<jar jarfile="${build.lib}/concepts.ear">
<fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
</fileset>
</jar>
<target depends="deploy" name="explode">
<taskdef classname="org.jboss.nukes.common.ant.Explode" classpath="${libs}" name="explode"></taskdef>
<explode file="${build.lib}/concepts.ear" name="concepts.ear" todir="${build.lib}/exploded"></explode>
</target>
<target depends="war" name="all"></target>
<target name="clean">
<delete dir="${build.dir}">
</delete>
<delete dir="${dist.dir}">
</delete>
</target>
</project>
I am a little inexperienced in XML files. So I am unable to spot the error.
I would greatly appreciate it, if some kind soul were to help me out.
thanks a lotThe tag
<target name="deploy" depends="clover-yes, clover-no">...is never closed.
close that tag:
<target name="deploy" depends="clover-yes, clover-no">
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
<include name="org/apache/commons/fileupload/**/*.java" />
<include name="com/portalbook/portlets/**/*.java" />
<include name="com/portalbook/portlets/content/**/*.java" />
</javac>
</target>Second error is that the depends in there (clover-yes, clover-no) are not existing as targets in your xml. -
I have string...as
String xstr="<?xml version=\"1.0\"?>\n"+
"<UserGroups>\n<u_bit><![CDATA[1]]></u_bit>\n"+
"<u_title><![CDATA[public]]></u_title>\n<u_description><![CDATA[Pages are available to all visitors - no restrictions are applied]]></u_description>\n"+
"<u_used><![CDATA[1]]></u_used>\n<u_fromname/>\n<u_fromemail/>\n<pw_email/>\n<u_user/>\n<u_password/>\n</UserGroups>"+
I am trying to form a xmlDoc using String Reader as follows..
java.io.Reader reader = new java.io.StringReader(xstr);
org.xml.sax.InputSource source = new org.xml.sax.InputSource(reader);
org.w3c.dom.Document xmlDoc=null;
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
xmlDoc = builder.parse(source);
Element xmlRoot=xmlDoc.getDocumentElement();
Table_Name=xmlRoot.getNodeName();
NodeList oNodeList = xmlRoot.getChildNodes();
Node PNode=oNodeList.item(0);
But at the end...ONodeList.item(0)...does not give anything...Am I doing anything wrong...Pl help if possible soon
smitasince Value is within the CDATA tag...You see a "CDATA tag", as you call it, in your XML, but the parser strips that all off and normalizes it to an ordinary string. So writing
<![CDATA[public]]>
is exactly the same as writing
public
and the parser treats them identically. So identically, in fact, that there is no way for you to find out whether CDATA was used at all.
Sorry, that doesn't answer your actual question, but hopefully it prevents you looking in the wrong direction. -
Procedure to generate invoice in xml---please help
Hi all,
I have to write code review of a pakage which contain procedure to generate invoice in XML.The procedure contain two
files .pkb and .pks.All i know is that it will deliver elemt of the post script layout.?But i dont understand what it mean nor i am able to understand the code.I dont have any prior knowledge about this.Please help me and tell me any tutorial to understand and know how this is done.
Also i have pasted some part of code here .please help me in understanding what is going on.
help help help
* GET_INVOICE_XML
FUNCTION GET_INVOICE_XML(inInvId NUMBER) RETURN CLOB IS
BEGIN
IF NOT isClobReady THEN
dbms_lob.createtemporary(invClob, TRUE);
isClobReady := TRUE;
ELSE
dbms_lob.trim(invClob, 0);
END IF;
vInvoice :=
XML_VER_STR || NL ||
' <!DOCTYPE INVOICE_FILE SYSTEM "invoicfile.dtd">' || NL ||
'<INVOICE_FILE VERSION="1.1">' || NL;
GEN_PROLOG(InvId);
GEN_INVOICE(InvId, 1);
vInvoice := vInvoice ||
'</INVOICE_FILE>' || NL || NL;
APPEND_INVOICE(0);
RETURN invClob;
END GET_INVOICE_XML;
PROCEDURE GEN_INVOICE(InvId NUMBER, inITBMode NUMBER) IS
vP1 PLS_INTEGER;
vP2 PLS_INTEGER;
vAtt BOOLEAN;
inv ABCINVOICE%ROWTYPE;
cdr_no NUMBER;
t0 TIMESTAMP;
t1 TIMESTAMP;
execTime NUMBER(12,6);
BEGIN
t0 := LOCALTIMESTAMP;
SELECT * INTO inv FROM ABCINVOICE WHERE OACT = InvId;
dti := inv.DTI;
SELECT NVL(SUM(cdrNO),0) INTO cdr_no FROM ABCCONTRACTS WHERE OACT = InvId AND ITB IN ('Y', 'F');
vInvoice := vInvoice ||
' <INVOICE>' || NL ||
' <HEADER>' || NL ||
' <SEQ>' || inv.SEQ || '/' || inv.PROC_ID || '</SEQ>' || NL ||
' <LEN ';
vPos1 := INSTR(inv.LEN, '|', 1, 1);
vInvoice := vInvoice || 'INV="' || SUBSTR(inv.LEN, 1, vPos1-1) || '" ';
vPos2 := INSTR(inv.LEN, '|', vPos1+1, 1);
vInvoice := vInvoice || 'BAL="' || SUBSTR(inv.LEN, vPos1+1, vPos2-vPos1-1) || '" ';
vPos1 := INSTR(inv.LEN, '|', vPos2+1, 1);
vInvoice := vInvoice || 'DET="' || SUBSTR(inv.LEN, vPos2+1, vPos1-vPos2-1) || '" ';
vPos2 := INSTR(inv.LEN, '|', vPos1+1, 1);
vInvoice := vInvoice || 'PDET="' || SUBSTR(inv.LEN, vPos1+1, vPos2-vPos1-1) || '" ';
vPos1 := INSTR(inv.LEN, '|', vPos2+1, 1);
vInvoice := vInvoice || 'ITM="' || SUBSTR(inv.LEN, vPos2+1, vPos1-vPos2-1) || '" ';
vPos2 := INSTR(inv.LEN, '|', vPos1+1, 1);
vInvoice := vInvoice || 'PITM="' || SUBSTR(inv.LEN, vPos1+1, vPos2-vPos1-1) || '" NTF="' ||
SUBSTR(inv.LEN, vPos2+1) || '"/>' || NL;
vInvoice := vInvoice ||
' <BAR>' || inv.BAR || '</BAR>' || NL ||
' <BCD>' || inv.BCD || '</BCD>' || NL ||
CASE WHEN inv.BIC IS NULL THEN '' ELSE ' <BIC>' || inv.BIC || '</BIC>' || NL END ||
' <REF>' || inv.REF || '</REF>' || NL ||
' <OHX>' || inv.OHXACT || '</OHX>' || NL ||
' <CID>' || inv.CID || '</CID>' || NL ||
' <CCO>' || inv.CCO || '</CCO>' || NL ||
' <CND>' || inv.CND || '</CND>' || NL ||
' <PBF>' || inv.PBF || '</PBF>' || NL ||
' <DTI>' || inv.DTI || '</DTI>' || NL ||
' <DTD>' || inv.DTD || '</DTD>' || NL ||
' <DPS>' || inv.DPS || '</DPS>' || NL ||
' <DPE>' || inv.DPE || '</DPE>' || NL ||
' <DAS>' || inv.DAS || '</DAS>' || NL ||
' <DAE>' || inv.DAE || '</DAE>' || NL ||
' <PAY>' || inv.PAY || '</PAY>' || NL ||
' <NAM>' || ABCUTIL.CONVERT_POL_CHAR(inv.NAM) || '</NAM>' || NL ||
CASE WHEN inv.ADS1 IS NULL THEN '' ELSE ' <ADS>' || ABCUTIL.CONVERT_POL_CHAR(inv.ADS1) || '</ADS>' || NL END ||
CASE WHEN inv.ADS2 IS NULL THEN '' ELSE ' <ADS>' || ABCUTIL.CONVERT_POL_CHAR(inv.ADS2) || '</ADS>' || NL END ||
' <ADZ>' || ABCUTIL.CONVERT_POL_CHAR(inv.ADZ) || '</ADZ>' || NL ||
' <NIP>' || inv.NIP || '</NIP>' || NL ||
' <REG>' || inv.REG || '</REG>' || NL ||
' <PES>' || inv.PES || '</PES>' || NL ||
' <BCY>' || inv.BCY || '</BCY>' || NL ||
' <TXT>' || ABCUTIL.CONVERT_POL_CHAR(inv.TXT) || '</TXT>' || NL ||
' <GRO>' || TO_CHAR(inv.GRO, 'FM999990.90') || '</GRO>' || NL ||
' <FBL>' || inv.FBL || '</FBL>' || NL;
IF inv.STP > 0 THEN
GEN_TEXT(inInvId, 1);
END IF;
vInvoice := vInvoice ||
' </HEADER>' || NL ||
' <ADDRESS>' || NL ||
' <ENV>' || inv.ENV || '</ENV>' || NL ||
' <TNA>' || ABCUTIL.CONVERT_POL_CHAR(inv.TNA) || '</TNA>' || NL ||
CASE WHEN inv.TAS1 IS NULL THEN '' ELSE ' <TAS>' || ABCUTIL.CONVERT_POL_CHAR(inv.TAS1) || '</TAS>' || NL END ||
CASE WHEN inv.TAS2 IS NULL THEN '' ELSE ' <TAS>' || ABCUTIL.CONVERT_POL_CHAR(inv.TAS2) || '</TAS>' || NL END ||
' <TAZ>' ||ABCUTIL.CONVERT_POL_CHAR(inv.TAZ) || '</TAZ>' || NL;
GEN_TEXT(inInvId, 2);
vInvoice := vInvoice ||
CASE WHEN inv.MTX IS NULL THEN '' ELSE ' <MTX>' || inv.MTX || '</MTX>' || NL END ||
' </ADDRESS>' || NL;
APPEND_INVOICE(0);
IF inv.BCY <> '99' THEN
GEN_INVOICE_BILLING(inInvId);
GEN_BALANCE(inInvId);
vPos1 := INSTR(inv.LEN, '|', 1, 2) + 1;
vPos2 := INSTR(inv.LEN, '|', vPos1, 1);
vPos1 := SUBSTR(inv.LEN, vPos1, vPos2 - vPos1);
IF vPos1 > 1 THEN
GEN_SUMMARY(inInvId);
END IF;
END IF;
vInvoice := vInvoice || ' </INVOICE>' || NL;
APPEND_INVOICE(0);
END GEN_INVOICE;Edited by: BluShadow on 28-Aug-2012 09:46
added {noformat}{noformat} tags for readability. Please read: {message:id=9360002}Not quite sure what you want to know about it.
If you want a code review of it, I can tell you it's very poor code, because that's not how to generate XML data in Oracle. Oracle has built in XML functionality for generating such data, and doesn't require hard-coding XML tags.
Here's the Oracle documentation...
http://tahiti.oracle.com/
pick your database version and search for things like XDB, SQLX or more specifically XMLELEMENT, XMLAGG, XMLATTRIBUTES etc. -
Xml transfornation help dump help
HI ,
I have this string type xml and it coming from internal table and i want to parse it to abap internal table, i follow some example that in the forum and i facing an dump ,do some one can help.
Regards
DATA: BEGIN OF wa,
key TYPE string,
val TYPE string,
END OF wa.
DATA it_data LIKE TABLE OF wa.
START-OF-SELECTION.
DATA: xml_string TYPE string
VALUE '<determination><deter key = "00009" value = "Johan"/><deter key = "1000" value = "GSS"/></determination>'.
CALL TRANSFORMATION z_xml_to_itab
SOURCE XML xml_string
RESULT itab = it_data.
This is what i write on TR. strans
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="ITAB"/>
<tt:template>
<determination>
<tt:loop name="a" ref=".ITAB">
<deter>
<tt:attribute name="key" ref="$a.akey" name="val" ref="$a.aval" />
</deter>
</tt:loop>
</determination>
</tt:template>
</tt:transform>
When i check on the debugger the error is in line :
<tt:attribute name="key" ref="$a.akey" name="val" ref="$a.aval" />
the dump is :
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_ST_MATCH_ATTRIBUTE', was not
caught and
therefore caused a runtime error.
The reason for the exception is:
XML matching error
Expected was attribute: "val" [ ] Read was element-start: "deter" [ ].
What i miss here ?????,please help.
Regards
Joy
Edited by: Joy Stpr on Aug 3, 2009 9:54 AMHI Siva,
Thanks a lot,
i change it like u tell and i facing other dump,
do u have an idea.
this is exactly the code that i write :
DATA: BEGIN OF wa,
key TYPE string,
value TYPE string,
END OF wa.
DATA it_data LIKE TABLE OF wa.
START-OF-SELECTION.
DATA: xml_string TYPE string
VALUE '<determination><deter key = "00009" value = "Johan"/><deter key = "1000" value = "GSS"/></determination>'.
CALL TRANSFORMATION ztest_xml_009
SOURCE XML xml_string
RESULT itab = it_data.
This is what i write in strans
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="ITAB"/>
<tt:template>
<determination>
<tt:loop name="a" ref=".ITAB">
<deter>
<tt:attribute name="key" ref="$a.key" name="value" ref="$a.value" />
</deter>
</tt:loop>
</determination>
</tt:template>
</tt:transform>
And this is the dump
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_ST_MATCH_ATTRIBUTE', was not
caught and
therefore caused a runtime error.
The reason for the exception is:
XML matching error
Expected was attribute-end: "determination" [ ] Read was text: "Johan" [ ].
Can i help please :
U can just copy and paste the code and u get the same dump that i am facing
Thanks and best Regards
jOy
Edited by: Joy Stpr on Aug 4, 2009 8:57 AM -
XML Gurus: help with cloning a node without using clone!
Dear all,
I have to copy one piece of XML from one part of the document to another. Unfortunately I cannot simply do a copy and paste:
Node nodeLeaf = nodeChild.cloneNode(true);
nodeAncestor.appendChild(nodeLeaf);
because some fragments of the nodeLeaf mustn't be copied (depending on the node value)
So I cannot make a deep clone of the leaf.
I have to make a clone of nodeLeaf by myself. (Copying its child with a recursive function)
I have built a recursive function but I cannot understand why it doesn't work correclty (text values are skipped and also some pieces of the xml aren't copied correclty)
// Passing the full leaf and a leaf with only the first tag, under which I clone manually the nodes.
Node copyNode = appendNodes(nodeLeaf, nodeLeaf.cloneNode(false));
private Node appendNodes(Node node, Node copyNode) {
NodeList kids = node.getChildNodes();
int length = kids.getLength();
if (kids != null) {
for (int ii = 0; ii < length; ii++) {
Node nodeKid = kids.item(ii);
copyNode.appendChild(nodeKid.cloneNode(false));
appendNodes(nodeKid,nodeKid);
return copyNode;
Anybody can give me a help ?
thanks a lot
FrancescoHere are a couple of suggestions:
1) General stuff.
NodeList kids = node.getChildNodes(); will always generate a NodeList. It may have no entries, but there is no need to check for if (kids != null). Your for loop will do nothing if the length is zero.
2) You need to change your code as follows:
for (int ii = 0; ii < length; ii++)
Node nodeKid = kids.item(ii);
Node newOutputNode = nodeKid.cloneNode(false);
copyNode.appendChild(newOutputNode);
appendNodes(nodeKid,newOutputNode);
}Dave Patterson -
I am trying to add multiple flash files to my website...the
only way these seem to work is if the swf and corresponding xml
file are all on the root of the website directory. I would have
liked to organize them into files to sort.
My problem is that many of these flash files (mainly
purchased) have the same xml file, so I cannot use these together
on the root. Thus, I need to either rename in the flash the xml
file or figure out how to put into folders...please help!
-JoshANSWER: I figured it out myself. I am just replying to let
everybody else know how I fixed it. I had the full URL in the load
request and apparently some Flash players don't like this. I put a
link to the file without the domain name and everybody is working
fine. The load function, Flash, or something could not resolve the
domian correctly and could not find the XML file. I was not getting
a request for the file from the Flash movie so I knew it had to be
soemthing in Flash. -
XML Invoice - help with Tax Summary
I've been tasked to modify an already modded XML Invoice using XMLP. I need to add a Tax Summary block at the bottom, showing the breakout of the tax codes and amounts charged on the invoice.
I've played around with it, but so far I can only get the first tax line to show up. I can't get the others. I need to insert a conditional, but I don't know how or where.
Has anyone run into anything like this before?
This probably isn't the best problem summary... but if you could help I'd appreciate it!Hi,
It sounds like you need to use a for-each to show each of your tax lines. If you do not have the for-each XMLP will only show the first tax line that is hits in the XML Output.
Would suggest that you take a quick look at the XMLP User Guide documentation for more information on how to use for-each.
Let me know if this does not solve your problem, or if you are still struggling.
Regards,
Cj -
I have a sample xml file:
<photos id = "images">
<photo>
<thumb type="jpg" thumbpath="pics/Thumbs/caddo_5-16-10-10_x.jpg"
thumbwidth="133"
thumbheight="200"
path="pics/fullsize/caddo_5-16-10-10.jpg"
width="425"
height="640"
place="Caddo Lake State Park"
city="Uncertain, Texas"
cat="Nature"
date="May 2010"></thumb>
<file>caddo 5-16-10-10</file>
</photo>
Trying to get only the cat Nature to display. Set up HTML file with one dataset please help!See the following samples:
Filtering with XPath
Multiple Non-Destructive Filters
Multiple Non-Destructive Filters Mode
Non-destructive Filter
XPath filtering with URL Params -
Xpath expression is empty for input XML file - Help!!!
Hi,
I am desperate by now!!! :-(
I am not able to read an XML file using the File Adapter
when trying to assign the input I get the following error:
06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFromValue(BPELAssignWMP.java:490)
06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__executeStatements(BPELAssignWMP.java:122)
06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217)
06/06/08 09:15:10 at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511)
06/06/08 09:15:10 at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
06/06/08 09:15:10 at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
06/06/08 09:15:10 at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
06/06/08 09:15:10 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
06/06/08 09:15:10 at java.lang.Thread.run(Thread.java:534)
<2006-06-08 09:15:10,384> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
messageType: {null}
parts: {{summary=<summary>empty variable/expression result.
[b]xpath variable/expression expression "/ns6:SUPPLIERS_ORDER_NUMBER" is empty at line 23, when attempting reading/copying it.
Please make sure the variable/expression result "/ns6:SUPPLIERS_ORDER_NUMBER" is not empty.
</summary>}}
this is my XML file:
<?xml version="1.0" encoding="utf-8"?>
<SUPPLIERS_ORDER_NUMBER>"XX"</SUPPLIERS_ORDER_NUMBER>
this is my xsd file:
<xs:schema
targetNamespace="http://schemas.oracle.com/service/bpel/common"
xmlns:common = "http://schemas.oracle.com/service/bpel/common"
xmlns:xs = "http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="SUPPLIERS_ORDER_NUMBER" type="xs:string"/>
</xs:schema>
Please help me
thanks
AmitHi,
This is my file adapter wsdl file:
<definitions
name="fileAdapter"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/"
xmlns="http://schemas.xmlsoap.org/wsdl/" >
<types>
<schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:FILEAPP="http://xmlns.oracle.com/pcbpel/adapter/file/">
<element name="InboundFileHeaderType">
<complexType>
<sequence>
<element name="fileName" type="string"/>
<element name="directory" type="string"/>
</sequence>
</complexType>
</element>
</schema>
</types>
<!-- Header Message -->
<message name="InboundHeader_msg">
<part element="tns:InboundFileHeaderType" name="inboundHeader"/>
</message>
</definitions>
So , should I use http://xmlns.oracle.com/pcbpel/adapter/file/ as my targetNamespace?
for example:
<xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
Thanks
Amit -
XML Newbie - Help Processing Files!
I'm not exactly sure if "process" is the right word, so I'll describe what I mean. There are two XML files (http://xml.pinnaclesports.com/xmlfeed.asp and http://208.138.39.112/XMLLineFiles/Baseball.xml) that are constantly updated online, and I want to be able to compare certain numbers in the two files.
Problem is, I really have no clue where to begin. I've heard that you can import XML into Microsoft Excel, but it can only refresh once every minute. Ideally I'd be able to compare the files almost constantly (like every 5 seconds or something). What are my other options? I don't really know any computer programming (besides a minimal amount of C), so I would really appreciate any help, just pointing me in the right direction.
Thanks for any help!Your best option would be to hire a programmer to do that work.
It's possible you could spend a few months learning the skills, but why bother when you could hire a programmer who could get it done in a day?
By the way, refreshing once every minute is what you want to do, not every five seconds. Besides the fact that it took me at least 15 seconds just to download those two pages, one of them says
"2. Do not read the feed more than one times per minute."
Maybe you are looking for
-
How do you turn off a wireless keyboard?
After the G5 iMac died, I bought a refurbished Intel 21.5" iMac from Apple. The wireless keyboard that comes with is fine but I prefer my wired USB keyboard with numeric keypad, etc. So I want to put the wireless one away. Every time I push the power
-
500 internal error:lisntner returned error
Hi All, I m new to this forum, Please help me. I`m using Oracle Application Server 10gR2 version 10.1.2.3 and my portal version is 10.1.4.2 and database version is 10.2.0.4 and it is 32-bit system. I imported dump from other application server with s
-
dear Friends, i need query row to column example 1 a data1 data2 data3 2 b data1 data2 data3 output format 1 2 a data1 data2 data3
-
Swf file not displayed in Published Presentation
Hello, Could anyone help me please. I have a created a swf file (using Captivate v4, published with Actionscript version 2 selected) and have added it into my Powerpoint (v2002) presentation using the Insert Flash option on the Adobe Presenter (v7) m
-
I need to perform the setups for interfacing credit card transactions to AR. Can anybody guide me how to go about this.