Delete any level xml element or attribute
Hi,
In Design CS2, How can i delete or untag all the id attributes from the entire xml and any level with javascript.
Is it possible ?
Thanks with Regards
Pramod Pant
It just needs a little recursion. I wrote this
removeTags (app.activeDocument);
function removeTags (startAt)
for (var i=startAt.xmlElements.length-1; i>=0; i--)
if (startAt.xmlElements[i].xmlElements.length > 0)
removeTags (startAt.xmlElements[i]);
startAt.xmlElements[i].untag();
in 2 minutes, found out that untag() already untags everything
i including
its sub-elements, then re-read your post. Ah ... just the attributes... Oh well. How about this:
removeTags (app.activeDocument);
function removeTags (startAt)
for (var i=startAt.xmlElements.length-1; i>=0; i--)
if (startAt.xmlElements[i].xmlAttributes.length > 0)
startAt.xmlElements[i].xmlAttributes.everyItem().remove();
removeTags (startAt.xmlElements[i]);
Similar Messages
-
Issue with working on a webservice that has xml elements with attributes
This is a branchout of Thread: Some more complex sample of invokin WS needed_
We are working on a project that involves a outbound SALT Web service call that includes complex elements with attributes..We are looking for options of how to use FML API's to pass these attribute values from the application code.
We opened a ticket with oracle where we were suggested to frame the entire xml and pass the xml using the FML32 of the complex element. But when we framed the xml for Service and put the entire XML which includes the attributes using the FML ID of Service.
Please find a sample Schema and XML similar to the one we are working on...its associated code
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Service" type="Service_Type" nillable="true">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="Service_Type">
<xs:sequence>
<xs:element name="DateTime" type="xs:dateTime" nillable="true">
</xs:element>
<xs:element name="UUID" nillable="true">
</xs:element>
<xs:element name="Status" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded">
</xs:element>
</xs:sequence>
<xs:attribute name="Version" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="Name" type="xs:string" use="required">
</xs:attribute>
</xs:complexType>
</xs:schema>
The sample XML is :
___<?xml version="1.0" encoding="UTF-8"?>___
___<!--Sample XML file generated by XMLSpy v2010 rel. 2 (http://www.altova.com)-->___
___<Service Name="TestService" Version="1.1" xsi:noNamespaceSchemaLocation="Untitled6.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">___
___ <DateTime>2001-12-17T09:30:47Z</DateTime>___
___ <UUID>text</UUID>___
___</Service>___
wsdlcvt generated the mif file with Service as a FML32 type and all its child elements as "mbstring". We tried to leave as it is and we also tried to replace all the child elements and just had a mif entry for "Service" as a mbstring neither produced a different output...Tried to dump using Ferror32 which did not dump any..._
The sample C/C++ code as per suggestions were to do the following...
_1) Have a string with the entire XML for Service_
xmldata="<Service Name=\"TestService"\ Version="1.1\"_ xsi:noNamespaceSchemaLocation=\"Untitled6.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">_
_ <DateTime>2001-12-17T09:30:47Z</DateTime>_
_ <UUID>text</UUID>_
_</Service>";_
_2) Use Fmbpack32 to create a mbstring data_
_memcpy(reqmbptr, (char*)xmldata.data(),xmldata.length());_
_len=xmldata.length();_
_Fmbpack32(mbcodeName,reqmbptr,len, packdata,(FLDLEN32 *)&packedlen,0);_
userlog("Size of packedlen is %d",packedlen);
3) Add the packed data to the output buffer
Fadd32(fmlbuffer,Service, packdata,packedlen );
But we do not see the Service tag populated in the GWWS outbound request.Everything else makes it....any help on how to move ahead would be appreciated...It seems you switch to the 10gR3 GA and now the whole XML data is mapped to FLD_MBSTRING.
I will forward my sample to you by mail, but this sample is not offical sample, it is just QA test case. You can refere it and check what's the difference.
Please let me know your mail address.
Regards,
Xu he -
OC4J orion-application.xml - elements and attributes
Hi. i read in oracle docs sentense like this: "Each property maps to an element attribute in the orion-application.xml descriptor." These properties are from deployment plan and i need to know what is the name of the element in orion-application.xml wich is mapped to webSiteBinding property (from deployment plan).
I just did a quick test of this, and it seems to work for me.
I used the following XML:
<?xml version="1.0" encoding="iso-8859-1"?>
<Employees xmlns="
http://www.foo.com/Employees">
<Employee Id="001">
<LastName>Davis</LastName>
<FirstName>Kirk</FirstName>
</Employee>
<Employee Id="002">
<LastName></LastName>
<FirstName>James</FirstName>
</Employee>
<Employee Id="003">
<FirstName>Anthony</FirstName>
</Employee>
<Employee>
</Employee>
</Employees>
With the XPath "/Employees/Employee" I got rows in the data
set and things displayed fine in my page. Changing it to
"/employees/employee" caused the data set to have no rows which I
would expect since things should be case sensitive.
Can you provide me with some sample XML and XPath that
doesn't work?
Thanks!
--== Kin ==-- -
Is it possible to have the XML structure (tags and attributes) be made visible and formatted in the layout? Such a hard-copy reference of the layout (a print and online Drupal publication) would make the XML visible to those persons writing/editing content but who are not using InDesign or XML viewing/editing programs. And this would improve workflow considerably. TIA
Its the nextSibling of nxBook or, you may want to do it via
an array:
var xRootNode:XMLNode =xmlData.firstChild ;
var xnBooks:XMLNode =xRootNode.childNodes;
for (var j=0;j<xnBooks.length;j++) {
var attrib:Object =xnBooks[j].attributes
for (var sattrib:String in attrib ) {
trace(attrib[sattrib]+ " " + sattrib); -
Deleting XML element in ABAP mapping
hi All
I Have I huge xml filen that has to go to an Idoc , but I only want to use the header data.
is there a way of deleting the unwanted xml elements and their children elements in ABAP mapping.
Thanks.Hi Ravi and all
Actually I did as you said, but I get this error.
<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
XMLParser: Prefix 'ns1' is not mapped to a namespace(:main:, row:177, col:25)
This position 177 , is the element that is not needed , so I thought if I can delete it , I can get rid of this error and move forward.
May be you have antoher suggestion to get rid of this error.
Thank you. -
Imported XSLT cannot create attributes for generated XML element
I have two xslts. One imports the other.
The imported xslt creates XML elements with attributes and this XML is stored in a variable in the main stylesheet
If I perform the transformation with JRE prior to 1.6.0.18 then all works fine
If I use 1.6.0.18 or 1.6.0.19 then the attributes aren't added.
If I add attributes in the main xslt it works fine or if I output the element directly instead of first storing it in a variable then it also works fine.
Problem seems to be when you try to add attributes from an imported stylesheet and store the generated element in a variable.
Below two stylesheets to illustrate :
First MainStylesheet.xsl
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 1993-2005 Seagull Software Systems, Inc. -->
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl"
exclude-result-prefixes="xs">
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes" />
<xsl:import href="innerstylesheet.xsl"/>
<xsl:template match="/TestData">
<xsl:variable name="generatedElementXml">
<xsl:call-template name="generateElement">
<xsl:with-param name="s">testValue</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:for-each select="exsl:node-set($generatedElementXml)">
*** GeneratedElementXML {<xsl:text>
</xsl:text><xsl:copy-of select="*"></xsl:copy-of>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>Next innerstylesheet.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:exsl="http://exslt.org/common"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
extension-element-prefixes="exsl" >
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/>
<xsl:template name="generateElement">
<xsl:param name="s"/>
<TestElement testAttribute="$s" />
</xsl:template>
</xsl:stylesheet>The result output by jres before 1.6.0.18 is :
<?xml version="1.0" encoding="UTF-8"?>
*** GeneratedElementXML {
<TestElement xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" testAttribute="testValue"/>
} The result output by jres since 1.6.0.18 is :
<?xml version="1.0" encoding="UTF-8"?>
*** GeneratedElementXML {
<TestElement xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
} Note : the 'testAttribute' attribute is missingHave found the difference in the code
In both JRE1.6.0_17 & JRE1.6.0_18, the class 'com.sun.org.apache.xalan.internal.xsltc.dom.AdaptiveResultTreeImpl' has the following method
public void addUniqueAttribute(String qName, String value, int flags)
throws SAXException
addAttribute(qName, value);
}In JRE1.6.0_17 the next method is
public void addAttribute(String name, String value)
if (_openElementName != null) {
_attributes.add(name, value);
else {
BasisLibrary.runTimeError(BasisLibrary.STRAY_ATTRIBUTE_ERR, name);
}In JRE1.6.0_18 the next method is
public void addAttribute(String uri, String localName, String qname,
String type, String value)
if (_openElementName != null) {
_attributes.addAttribute(uri, localName, qname, type, value);
else {
BasisLibrary.runTimeError(BasisLibrary.STRAY_ATTRIBUTE_ERR, qname);
}Note - the addAttribute method has additional parameters in JRE1.6.0_18 but the call from addUniqueAttribute wasn't updated.
So in JRE1.6.0_18 addUniqueAttribute actually invokes the following method in the base package com.sun.org.apache.xml.internal.serializer.EmptySerializer
public void addAttribute(String name, String value)
aMethodIsCalled();
void aMethodIsCalled()
// throw new RuntimeException(err);
return;
}and as you can see this does nothing. Hence the fact that the attribute isn't added. -
Cannot transform Java to XML - nested XML elements are empty
Hi,
We're using WLI 9.2.1 and in one of our JPDs we're invoking a transformation control that is supposed to do Java -> XML transform. The XQuery for this gets written and works when tested independently within Workshop.
However, wehn we run the JPD, the transformation is not completely successful. What we find is that attributes values that go into top-level XML elements are populated from the Java object. The nested elements are NOT populated and show up as empty.
Q: Is this s limitation in WLI 9.2?
Googling turned up this reference:
XMLBeans APIs Not Supported for Local Element and Complex Type Variables Produced by XQuery
http://e-docs.bea.com/wli/docs85/relnotes/relnotesLimit.html#1375310
http://edocs.bea.com/wli/docs81/relnotes/relnotesLimit.html#1226313
Q: Is this the problem we are seeing?
Q: If yes, any ideas if this CR138983 fixed in WLI 9.2? (it is open in 8.1, 8.5).
Any pointers will be appreciated.
Thanks.Note: This thread was originally posted in the Swing forum, but moved to this forum for closer topic alignment.
-
How to access XML elements by name in Extendscript??
I'm almost done the script that I've been working on, but something has been nagging me since I started. When I did start, I looked at the JS Tools Guide CS5 that comes with the extendscript ide to check how to access XML elements, children, attributes etc. It says this:
The XML object represents an XML element node in an XML tree. The topmost XML object for an XML file
represents the root node. It acts as a list, which contains additional XML objects for each element. These in
turn contain XML objects for their own member elements, and so on.
The child elements of an element tree are available as properties of the XML object for the parent. The
name of the property corresponds to the name of the element. Each property contains an array of XML
objects, each of which represents one element of the named type.
So basically it converts the XML into JSON. And you can access the properties like so:
<book category="COOKING">
<title lang="en">The Boston Cooking-School Cookbook</title>
<author>Fannie Merrit Farmer</author>
<year>1896</year>
<price>49.99</price>
</book>
The Javascript statement bookstoreXML.book; returns the entire list of books.
The statement bookstoreXML.book[0]; returns the XML object for the first book.
The statement bookstoreXML.book[0].author; returns all authors of the first book.
A couple pages down it talks about Retrieving contained elements using children(), elements(), descendants().
So now I look through the XML Object properties and I see that I can use:
xmlObj.child (which) which A String, the element name, or a Number, a 0-based index into this node’s child array.
or
xmlObj.descendants ([name])
name Optional. A String, the element name to match. If not provided, matches all
elements.
or
xmlObj.elements (name);
name Optional. A String, the element name to match. If not provided, matches all
elements.
This is an excerpt of an XML I was working with:
<ROW xmlns="http://www.filemaker.com/fmpdsoresult"
MODID="16"
RECORDID="11128">
<Sign_Type>251.dr</Sign_Type>
<fm:Location xmlns:fm="http://www.filemaker.com/fmpdsoresult" xmlns="">5-5024</fm:Location>
<Line1>Zone
Floor
3
Patient Rooms
R532 - R436 even
Patient Rooms
R522 - R446 even
Xavier Elevators
Zone
Patient Rooms
R537 - 5757 odd
Main Elevators
Zone</Line1>
</ROW>
Extendscript will not give me an anything when I try to access elements by name. Instead I have to access by index, which works, but I'd rather search for names!
Actually the console log returns: <![CDATA[]]>
What am I doing wrong!?First, those E4X XML objects are definitely no JSON (plain data) - they have a multitude of methods, even for tasks that would easily be implemented as property (e.g. the length() function), and they also bind xml element and attribute names onto the objects, allowing to target a multitude of XML nodes with a single statement. Or did you mean your script with that "it"?
Anyway, as you found out the ExtendScript XML object handles namespaces mostly by hiding them from you.
You could play around with global namespace settings, see the JavaScript tools guide.
You could also explicitly specify a namespace. This works for me:
$.writeln(myXML["fm:Location"]);
For simple use I had most success with a brute force approach that just strips the namespaces.
function removeAllNamespace(xml)
var ns =new Namespace();
var d=xml.descendants();
for (var i=0;i<d.length();i++)
d[i].setNamespace(ns); -
XML element,if not including any attributes and/or child elements then
XML element in SQLX,if not including any attributes and/or child elements then the tag should not appear, how to achive this?
ex:Consider for <enumeration> tag where it is having some value.
<attribute>
<name>Ethernet Access</name>
<enumeration>
<StringValue>Bandwidth</StringValue>
</enumeration>
</attribute>
When <enumeration> tag is not have any Value in this, then output should be as follows.
<attribute>
<name>Ethernet Access</name>
</attribute>
But what i am getting is
<attribute>
<name>Ethernet Access</name>
</enumeration>
</attribute>
Please suggest me the solution for this.
I tried , but when xmlelement() is not having data it will display empty tag ie </enumeration>, If xmlforest() are null it wont show tag, But i have to use xmlelement only. how can that be achived using xmlelement .Use a SQL case - when - else end construct to only execute the xmlelement if data is present. The SQL/XML standard is very clear, xmlElement will generate an empty element if no data is present. xmlforest will not.
-
Getting at a top-level XML attribute
It's Friday afternoon... I'm fried and can't seem to figure
out how to get at a top-level XML attribute.
Some specifics...
My XML doc has a single attribute in the top node followed by
several "version" nodes
<projData projectName="Spry Project">
<version>
I successfully load and create an xml data set from said XML
file. Later on, I use the getDocument() method to refer to the XML
DOM doc used by the original xml data set. I need to extract the
value of the attribute "projectName" into a javascript variable.
The xpath query should be "projData/@projectName" but all I
get returned is an undefined value.
Any ideas? I'm sure it's something simple that I'm
overlooking.> can you please helo.
This is impossible.
Obviously your ABAP mapping is wrong. Fix it. -
[JS-CS4] - How to read the XML Element and its Attributes
Dear All,
I have the doubt regarding: reading the xmlElement and its attributes.
Here I droping the xml script
//============= Start ======================//
var myDoc = app.activeDocument;
var Fpath = File("../Projects/Entity_map.xml");
if (Fpath.exists)
Fpath.open("r");
var Cont= Fpath.read();
var roots = new XML(Cont);
var myEveryName = new Array();
var myEveryContent = new Array();
var myEveryAttributes = new Array();
traverse(roots);
//$.writeln(myEveryName);
//$.writeln(myEveryContent);
$.writeln(myEveryAttributes.length);
for(var i=0; i<myEveryAttributes.length; i++)
$.writeln(myEveryAttributes[i]);
function traverse(tree) {
myEveryName.push(tree.name());
myEveryContent.push(tree.text());
myEveryAttributes.push(tree.getAttribute);
// you get the contents by using .text() insted of .name()
if(tree.elements().length() > 0) {
for(var i=0; i<tree.elements().length(); i++) {
traverse(tree.elements()[i]);
//============== End =====================//
and the XML Structure is
//===============XML =====================//
<?xml version="1.0" encoding="UTF-8"?>< Entity_Convertion>
< Entitys char="Ç" GID="173"/></
Entity_Convertion>
//===============End ====================//
Here I'm getting the XML Elements and its contents, but not xmlAttributes.
Please any one can help me, then I will appreciate...
Thanks & Regards
T.R.Harihara SudhaNDear All,
I have the doubt regarding: reading the xmlElement and its attributes.
Here I droping the xml script
//============= Start ======================//
var myDoc = app.activeDocument;
var Fpath = File("../Projects/Entity_map.xml");
if (Fpath.exists)
Fpath.open("r");
var Cont= Fpath.read();
var roots = new XML(Cont);
var myEveryName = new Array();
var myEveryContent = new Array();
var myEveryAttributes = new Array();
traverse(roots);
//$.writeln(myEveryName);
//$.writeln(myEveryContent);
$.writeln(myEveryAttributes.length);
for(var i=0; i<myEveryAttributes.length; i++)
$.writeln(myEveryAttributes[i]);
function traverse(tree) {
myEveryName.push(tree.name());
myEveryContent.push(tree.text());
myEveryAttributes.push(tree.getAttribute);
// you get the contents by using .text() insted of .name()
if(tree.elements().length() > 0) {
for(var i=0; i<tree.elements().length(); i++) {
traverse(tree.elements()[i]);
//============== End =====================//
and the XML Structure is
//===============XML =====================//
<?xml version="1.0" encoding="UTF-8"?>< Entity_Convertion>
< Entitys char="Ç" GID="173"/></
Entity_Convertion>
//===============End ====================//
Here I'm getting the XML Elements and its contents, but not xmlAttributes.
Please any one can help me, then I will appreciate...
Thanks & Regards
T.R.Harihara SudhaN -
How can I get the Attribute Value in the existing XML Elements-Reg.
Dear All,<br /><br /> I have the InDesign Document with xml Based, now I want to get the XML Elements name and XML Attributes for each Elements, using SDK Concepts. <br /><br />Example:<br /><br /> <chapter> chapter1 </chapter> id = "ch001"<br /> <sec> Section ....</sec> id ="se001"<br /> <para> para ....</para> id="pa001"<br /><br />How can I get the XMLElements & XML Attributes in the InDesign-XML Structure.<br /><br />Please any one can suggest me....<br /><br />Thanks & Regards<br />T.R.Harihara SudhaN
Dear Dirk
Many Thanks for the Suggestions, Now I search and study the XML concepts. Meanwhile, I need your suggestions for further Development in SDK -XML concepts.
I am using the SnippetRunner -SDK file, their given some XML based programmes. [Create XML Elements, Elements + Attributes, XML Comments] and etc...
Hope U will help me to Develop the SDK- XML Concepts.
Thanks & Regards
T.R.Harihara SuduhaN -
Extracting the Attributes values of an XML Element
Dear Forum Members
Please tell me any XML Function which is used to extract the Attribute value of an XML Element.
Given below
<BRKCD_STREDSWTINVIN_C Key="6708">
is an Element With some Key value.
I want to have that Key value.
Using Extract and Extractvalue I am not able to get the Attribute value.
Is there any way..
Regards
Madhu KYour xml is not really complete ;), but this should get you started:
michaels> with t as
(select xmltype('<BRKCD_STREDSWTINVIN_C Key="6708"></BRKCD_STREDSWTINVIN_C>') xml from dual)
select d.xml, d.xml.extract('//BRKCD_STREDSWTINVIN_C/@Key') key
from t d
XML KEY
<BRKCD_STREDSWTINVIN_C Key="6708"></BRKCD_STREDSWTINVIN_C> 6708 -
Delete duplicate xml element message
If I coincidently insert into xml type, with duplicate element as below. How would I remove it?
The duplicate element here is <lastname>
Thanks for your help,
Luan
--- I used this code from example of other forums.
create table XML_CLOB of XMLType;
prompt 'insert into XML_CLOB values ( xmltype(<student id="211"><personal idPer="2561"><firstName>John</firstName><middleName>Michael</middleName><lastName>Scott</lastName><birthday>15-11-1984</birthday><address>8600 Beverly Blvd.</address><city>Los Angeles, CA.</city><country>USA</country></personal></student>))';
insert into XML_CLOB values ( xmltype(
'<student id="211">
<personal idPer="2561">
<firstName>John</firstName>
<middleName>Michael</middleName>
<lastName>Scott</lastName>
<lastName>Scott</lastName>
<birthday>15-11-1984</birthday>
<address>8600 Beverly Blvd.</address>
<city>Los Angeles, CA.</city>
<country>USA</country>
</personal>
</student>'));Using your first sample.
You can count the number of lastName nodes explicitly :
SELECT XMLQuery(
'count(/student/personal/lastName)'
passing object_value
returning content
).getNumberVal() as node_count
FROM xml_clob
WHERE existsNode(object_value, '/student[@id="211"]') = 1
;or count occurrences of each node, student-wise :
SQL> SELECT extractvalue(t.object_value,'/student/@id') as student_id,
2 x.node_name,
3 count(*)
4 FROM xml_clob t,
5 XMLTable(
6 'for $i in /student/personal/*
7 return local-name($i)'
8 passing t.object_value
9 columns
10 node_name varchar2(30) path '.',
11 posn for ordinality
12 ) x
13 WHERE existsNode(t.object_value, '/student[@id="211"]') = 1
14 GROUP BY extractvalue(t.object_value,'/student/@id'), x.node_name
15 ;
STUDENT_ID NODE_NAME COUNT(*)
211 birthday 1
211 middleName 1
211 address 1
211 lastName 2
211 firstName 1
211 country 1
211 city 1
7 rows selected
I wanted to delete the duplicate of <personal idPer="2561">OK, using your second sample, still with deleteXML function :
UPDATE xml_clob
SET object_value = deleteXML(object_value, '/student/personal[@idPer=preceding-sibling::personal/@idPer]')
WHERE existsNode(object_value, '/student[@id="211"]') = 1;It will delete duplicate personal nodes (based on attribute idPer).
Here, the XPath expression "/student/personal[@idPer=preceding-sibling::personal/@idPer]" selects every personal node having an idPer existing in a previous personal node. -
Parse XML Elements/Attributes from CLOB into Oracle Table
Hi!
I have an XML file (loaded into a CLOB) which I need to parse and have each individual element and attribute inserted into an oracle table for manipulation.
Eg: XML File...
<PERSON>
<PER_ID changed="1">1</PER_ID>
<SURNAME changed="1">MARTIN</SURNAME>
<ADDRESS>
<STREET_NO changed="1">1</STREET_NO>
<POSTCODE changed="1">LE3 8RA</POSTCODE>
</ADDRESS>
</PERSON>
There will only ever be one address.
From this I need to extract
* PER_ID and related changed attribute
* SURNAME and related changed attribute
* STREET_NO and related changed attribute
* POSTCODE and related changed attribute
and insert a single record into the table below:
CREATE TABLE PERSON AS
( PER_ID VARCHAR2(10)
, ID_CHANGED VARCHAR2(1)
, SURNAME VARCHAR2(30)
, ID_CHANGED VARCHAR2(1)
, STREET_NO VARCHAR2(5)
, ID_CHANGED VARCHAR2(1)
, POSTCODE VARCHAR2(10) );
Any assistance/advice would be very much appreciated. I've tried using DBMS_XMLSave / DBMS_XMLStore which works great at pulling in elements (PER_ID, SURNAME, etc) straight into the table but doesn't look at the changed attributes, and I need both.
Thanks a million in advance to anyone who can crack this!!
JayTry looking at this thread
Loading datafrom a PL/SQL table into the Database table
Maybe you are looking for
-
Will not boot from CD ROM - MountCheck Error
Had a system crash. Since then had problem with corrupt system on one drive. Am trying to load OX10.2 on drive. Start installation telling it to launch from disk and reverts to a SCSI drive. Hold down "S" when starting and also launches from SCSI dri
-
Hi, we have an interface from R3 to MQSeries using a JMS adapter. When we put the message in queue MQ the message format is wrong. The message correct should be: <?xml version="1.0" encoding="UTF-8" ?> <requestMsg> <dse_operationName>MPB8</dse_
-
Why wont iwork work??
I keep getting this message when I try to open up my iWork. It worked just fine and all of a sudden this..... "Pages cannot be opened because of a problem." Check with developer to make sure pages works with this versionof Mac OSX Process: Pa
-
Select ... for all entries problem
Hi, I'm making select statements to BKPF and BSEG, but I can't do an inner join between this two table because BSEG it's a cluster table so I have to do a SELECT... FOR ALL ENTRIES, but in SE16 I make the same query that I have writen in my program a
-
How is it possible that in preference the lock by Time Machine is unlocked the day after i locked it
How is it possible that in preference the lock by Time Machine is unlocked the day after i locked it