(Encrypting XML elements - please help!
Hi all
I want to be able to take an XML file as input and encrypt just certain elements within it (as opposed to the whole document) using a public key. Later, I will need to reverse the process and decrypt with a private key. I would be extremely grateful for any advice/pointers/code snippets that could get me started.
I have found various tutorials on the web and have begun following them, only to later find that the technology has been deprecated. I decided to post here therefore in the hope that someone could point me in the direction of the latest up to to date technology and best practice!
I am using Weblogic 9.2 to host my application.
Many thanks for reading my post.
Kind regards
Jon
Well no, there's no limit on the size of an XML file by the specification, but in practice you will find that you almost always have to load the XML file into memory. This means that the larger the file, (a) the longer it takes to load and (b) the more likely it is you will run out of memory. I have seen it suggested that 10 megabytes is a practical upper limit for the size of an XML file to be processed in this way, but of course that would be just a rough guideline. If you have files much larger than that, you will have to use a SAX parser (which processes the XML sequentially) if you want to be able to handle it.
But if you are talking about B2B, then most of your XML files will be transaction packets, right? Probably you wouldn't have a purchase order that large, for example. And you will be processing them asynchronously, right? (Nobody sitting at the browser waiting for a response.) That simplifies things because you don't have response time as an overriding requirement.
Similar Messages
-
Hi, I want to display the number of Passed / failed tests in Testtand xml report , please help me.
My requirement is later i should be able to display these number of passed/failed test in report header too.
Solved!
Go to Solution.I have attached a sequence to give you an idea of how to get the Result count (I didn't check it's working ), I have used "SequenceFilePostResultListEntry" callback to calculate the Result Count,
and the Result Count is passed to the "ModifyReportHeader" through File Globals, where you can edit the XML file to show it in the Repot (follow the link in my previous post).
Hope this helps
AshwiN,
Attachments:
Get Result Count.seq 8 KB -
project file wont open. damaged file or contains outdated elements message. i believe its an XML error but i dont know how to fix it. please help
As a happy user of the Matrox RT.X2 for many years, and later an equally happy user of a Matrox MXO2, I can say from experience that it is highly unlikely that this problem has anything to do with the Matrox hardware!
Can you open a new blank project, and save it?
If you cannot import your faulty project into a new project, can you import the sequence from your faulty project?
Have you tried clearing the Media Cache, clearing your preferences, etc. - all among the techniques used to resurrect a Premiere Pro project that has gone bad??? -
For Oracle XML Team:please help
hi,
I have been trying to run my java code using XSQLRequest from inside the stored procedure for past couple of days and i have had a couple of queries which were answered successfully.Thanks for that.
But so far i have not been able to execute the code from inside the stored procedure which works fine if executed from commandline or thro a normal java application.
It is always some problem or other and since there is no one except for this forum I end up submitting my queries in here.
IS there any way i can get in touch with someone from ur side and may be figure out if i can do the way i 'm doing right now or i'm just wasting my time for nothing.I'm already done with the project schedule so i have to answer my PL.
I have loaded the oraclexsql.jar file and the corresponding parserv2.jar and oraclexmlsql.jar file in my database.
and i did load the XSQLConfig.xml file in the database file as well n which i'm using oracle:jdbc:thin:@10.0.0.70:1521:xdp as my <dburl>.
now when i try to call the stored procedure i get the following error:
Oracle XSQL Programmatic Page Processor 0.9.8.6 (Technology Preview)
XSQL-007: Cannot acquire a database connection to process page.
No suitable driver.
I did find that inorder to make the database connection from inside the stored procedure we have to use jdbc.oracle.kprb driver
and that thin and oci are not supported.
Does this mean i have to specify the same in my <dburl> for the config file.
I infact did try to use this but it wont work and i got the same error.
Can u please help me with this.
This is extremely important for me that i come to a conclusion.
Thanks a lot
Aman
(if it is possible that i can talk to someone frm ur side it 'll be reallly great.)
nullTry using Oracle XML SQL Utility from
inside the DB. XSQL is just calling that
utility. -
XML Files - PLEASE help!!
Hi guys!
Am desperately seeking some help on an XML issue please!!
Am just wondering if anyone knows any limitations of having large XML files within B2B applications. Everywhere I look seems to suggest that there's no limit on the size of an XML file - this is grand, but is anyone aware of a performance downgrade when dealing with large files? And if so, what is the maximum recommended file size before performance is affected. Are there any other issues upon which file size would have a negative impact? Sorry if this sounds like a bit of a silly question but am a newbie to the design implications of XML and am in bad need of assistance!
thanks a mill for all your help
cheers
bronniebeeWell no, there's no limit on the size of an XML file by the specification, but in practice you will find that you almost always have to load the XML file into memory. This means that the larger the file, (a) the longer it takes to load and (b) the more likely it is you will run out of memory. I have seen it suggested that 10 megabytes is a practical upper limit for the size of an XML file to be processed in this way, but of course that would be just a rough guideline. If you have files much larger than that, you will have to use a SAX parser (which processes the XML sequentially) if you want to be able to handle it.
But if you are talking about B2B, then most of your XML files will be transaction packets, right? Probably you wouldn't have a purchase order that large, for example. And you will be processing them asynchronously, right? (Nobody sitting at the browser waiting for a response.) That simplifies things because you don't have response time as an overriding requirement. -
Writing a Procedure to return back XML. Please help.
Hello,
I am writing a procedure in Oracle 10G,that will return back an XML
to me.
I am passing 2 parameters to this procedure (a Quantity and a Price) and these parameters are element values of the XML that will be returned.
My Query is :
1) How can the arguments being passed to the procedure become element values.
2) Is my procedure to return back the XML correct.? Please can someone modify this procedure?
Please can someone help me with this procedure as this is a PROD issue.
Help really appreciated.
PROCEDURE getTradeXML(qty IN VARCHAR2,price IN VARCHAR2 xml IN OUT CLOB)
IS
xml CLOB;
BEGIN
xml = 'SELECT XMLELEMENT("Trade", XMLELEMENT("Quantity",qty),
XMLELEMENT("Price", price))
FROM DUAL'
END;PROCEDURE getTradeXML(qty IN VARCHAR2,price IN
VARCHAR2 xml IN OUT CLOB)
IS
xml CLOB;
BEGIN
xml = 'SELECT XMLELEMENT("Trade",
XMLELEMENT("Quantity",qty),
MLELEMENT("Price", price))
FROM DUAL'maybe you want
SELECT XMLELEMENT("Trade", XMLELEMENT("Quantity",qty), XMLELEMENT("Price", price)) into xml FROM DUAL;
/*not tested*/ -
Polulate Text frames with XML content - PLEASE help me.
Hi guys,
I'm trying to import some xml data to an indesign file. Here are the steps I'm doing:
1- create new document
2- create master page
3- create empty text fields in the master to be tagged
4- import tags from xml
5- import xml
then it simply don't auto populate the text fields wiith the xml content.
I've already spent about 10 hours trying to figure out what can be the problem...
My structure in indesign (BEFORE importing XML):
businesscards
Card
employeeName
employeePosition
employeeAddressln1
employeeAddressln2
employeePhone
employeeEmail
My structure in indesign (AFTER importing XML):
businesscards
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
employeeName
employeePosition
employeeAddressln1
employeeAddressln2
employeePhone
employeeEmail
But it doesn't populate the text frames...
I've already tried to write text in the text frames and tagged them, so I can see those colored brackets. But it doesn't work and makes a mess in the structure.
Please, can someone help me, do you know a good step by step tutorial online? What am I doing wrong?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<businesscards>
<Card>
<!-- contents of Suzan Reed -->
<employeeName>Suzan Reed</employeeName>
<employeePosition>Director of Marketing</employeePosition>
<employeeAddressln1>506 SE 72nd Avenue</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97215</employeeAddressln2>
<employeePhone>503-481-5858 direct</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Gabriel Powell -->
<employeeName>Gabriel Powell</employeeName>
<employeePosition>Senior Training Director</employeePosition>
<employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
<employeePhone>503-515-5404 direct</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Dale Erwing -->
<employeeName>Dale Erwing</employeeName>
<employeePosition>Trainer</employeePosition>
<employeeAddressln1>5131 Buffalo Ave. #20</employeeAddressln1>
<employeeAddressln2>Sherman Oaks, CA 91423</employeeAddressln2>
<employeePhone>310-795-8943 cell</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Jim Conner -->
<employeeName>Jim Conner</employeeName>
<employeePosition>Trainer</employeePosition>
<employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
<employeePhone>503-515-2376 cell</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
</businesscards>
Thanks in advanceIt worked! thanks ... But...
But only if I don't apply to the Master when I apply to the master all the other cards have the same content as the first of the XML. :(
Even when I try to create multiple pages (cards) with no Master page (too time consuming), I can't figure out a way of having the other cards filed with the remaining data of the XML. :(
I don't want to drag the elements one by one to every single card (they are so many...)
Is there a way of having the structure organized in a way to have indesign auto populate and auto create pages?
thanks for any kind of advice. -
Problem with xml table, please help
hello everyone,
can you help me please , i need to read an xml file from the sap directory into an L_XML_TABLE declared as follow :
TYPES: BEGIN OF t_xml_line,
data(256) TYPE x,
END OF t_xml_line.
TYPE-POOLS: ixml.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory,
l_parser TYPE REF TO if_ixml_parser,
l_istream TYPE REF TO if_ixml_istream,
l_document TYPE REF TO if_ixml_document,
l_node TYPE REF TO if_ixml_node,
l_xmldata TYPE string.
DATA: l_elem TYPE REF TO if_ixml_element,
l_root_node TYPE REF TO if_ixml_node,
l_next_node TYPE REF TO if_ixml_node,
l_name TYPE string,
l_iterator TYPE REF TO if_ixml_node_iterator.
DATA: l_xml_table TYPE TABLE OF t_xml_line,
l_xml_line TYPE t_xml_line,
l_xml_table_size TYPE i.
when i try the READ DATASET of my file into the table it gives me the error message
L_XML_TABLE cannot be a table,a reference, a string or contain any of this objects.
is there a solution , it's important.
thank you very muchYou know that READ DATASET reads a line at a time, not the whole table?
What code do you have for actually reading the file? -
How to filter data from a source XML? Please help!
Hi Experts,
I have a source XML as shown below:
<Inventory>
<InventoryItem>
<ItemCode>InTransit</ItemCode>
<Quantity>1000</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Available</ItemCode>
<Quantity>1500</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Restricted</ItemCode>
<Quantity>2500</Quantity>
</InventoryItem>
</Inventory>
My Target XML is as below
<Inventory>
<stock>1500</stock>
</Inventory>
The stock element contains Quantity value where ItemCode is 'Available'.
But note that there are 3 InventoryItem nodes.
So how to get the desired target XML in XI mapping? Basically I have to filter data from source XML based on value of an element. What is the best approach to handle this?
Kindly help
Thanks
GopalHi venkat,
Your solution does'nt work fine. But why are you using collapsecontext and splitbyvalue before putting the value into stock element?
Kindly explain your concept.
My target message is:
<?xml version="1.0" encoding="UTF-8"?>
<Inventory>
<InventoryItem>
<ItemCode>InTransit</ItemCode>
<Quantity>1500</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Available</ItemCode>
<Quantity>1000</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>UnRestricted</ItemCode>
<Quantity>2000</Quantity>
</InventoryItem>
<InventoryItem>
<ItemCode>Available</ItemCode>
<Quantity>2500</Quantity>
</InventoryItem>
</Inventory>
I am getting the output even though stock is unbounded and I have used collapsecontext and splitbyvalue as:
<InvStock>
<Stock>1000</Stock>
</InvStock>
I should get:
<InvStock>
<Stock>1000</Stock>
<Stock>2500</Stock>
</InvStock>
Thanks
Gopal
Message was edited by:
gopalkrishna baliga -
Hi,
I'm having a xml doc like the following
<EmployeeDetails>
<employee>
<id>1001</id>
<name>Ranjith.M</name>
<age>26</age>
</employee>
<employee>
<id>1002</id>
<name>Unni.D</name>
<age>29</age>
</employee>
<employee>
<id>1003</id>
<name>Anil.G</name>
<age>32</age>
</employee>
<employee>
<id>1004</id>
<name>Asha A</name>
<age>26></age>
</employee>
</EmployeeDetails>
from this i would like to query for the age and name of an employee whose id whose id = 1004 using DOM.
could u pls tell me how to do this using DOM. and what all functions in the APIs will help me in doing this...
Thank YouMake 'id' a ID attribute of the 'Employee' element.
Document xmlDocument;
// Get Element with id=1004
Element element1004=xmlDcoument.getElementById("1004");
//Get node list of 'name' tags.
NodeList EmployeeName=element1004.getElementsByTagName("name");
//Get node list of 'age' tags.
NodeList EmployeeAge=element1004.getElementsByTagName("age");
//Retrieve Employee 'name' value.
String employee1004Name=EmployeeName.item(0).getFirstChild().getNodeValue();
//Retrieve Employee 'age' value.
String employee1004Age=EmployeeAge.item(0).getFirstChild().getNodeValue(); -
The project could not be loaded, it may be damaged or contain outdated elements - PLEASE HELP
Hi Dear Adobe Forum,
I need help, please
i cant open my project
I72600K
Gygabite Z77Ud5
Matrox Rtx2
16Gb ram
Adobe premiere cs5.0.3
Nvidia geeforce gtx460
u can download my file from here[code]http://speedy.sh/Ahkxh/Anahit1.prproj[/code]http://speedy.sh/Ahkxh/Anahit1.prprojAs a happy user of the Matrox RT.X2 for many years, and later an equally happy user of a Matrox MXO2, I can say from experience that it is highly unlikely that this problem has anything to do with the Matrox hardware!
Can you open a new blank project, and save it?
If you cannot import your faulty project into a new project, can you import the sequence from your faulty project?
Have you tried clearing the Media Cache, clearing your preferences, etc. - all among the techniques used to resurrect a Premiere Pro project that has gone bad??? -
Loading data from xml file - please help
Hi, I am new to attempting to get data from an xml file load
in flash. I followed a tutorial in a new fla and it seemed to work
fine, I then tried to adapt it to my own needs which worked fine.
But then when trying to implement this into my news section it
doesn't seem to work.
I am trying to make a news section, that displays the date
and news article. This is in within a movie clip, I even tried
putting it in the timeline of the scene but still nothing.
- I have 2 dynamic text boxes, date_txt and news_txt
- The xml file is named news.xml,
- both the fla and the xml are in the same folder
This is the actionscript I am using:
function loadXML(loaded) {
if (loaded) {
_root.thedate =
this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.thenews =
this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
date_txt.text = _root.thedate;
news_txt.text = _root.thenews;
} else {
trace("file not loaded!");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("news.xml");
This is what I have in the xml document:
<?xml version="1.0"?>
<news>
<article>
<date>date</date>
<news>newentry.</news>
</article>
<article>
<date>Doug Engelbart</date>
<news>Invented the mouse at the Stanford Research
Institute</news>
</article>
</news>
Does anyone perhaps have any ideas of what the problem could
be?
Help much appreciated.Hi
_root refers to the Main Timeline, if your date_txt and
news_txt are in a movieclip ie: news_mc
then your path should read _root.news_mc.date_txt.text and
_root.news_mc.news_txt.text
You will also need to embed the characters you wish to use
inside your dymanic text for it to show.
Hope it helps -
Hi,
In most of the OTN XML samples, the data was entered by SQL scripts.
In real life, is it possible to maintain enterprise information /data by only using XML/XSQL technology without using Java applets? Is it at all possible ?
As a newbe I am looking for some simple XML sample application.
If I can find on the basis of SCOTT schema
complete XML application through which I can INSERT/UPDATE/DELETE record including the error handling for primary key violation and so on ... would be great!
I think such kind of application will help many of us to understand the basics!
Thanks in advance!
Nadeem
nullMy Building Oracle XML Applications book contains 800 pages of examples, covering this and many, many more subjects. It would be pretty difficult to post a complete working example here on the discussion forum.
-
I am trying the run the ipsadmin command as follows:
"ipsadmin change component iwtUserInfoProvider iwtUserInfoProvider.xml"
And I am getting the following error:
"Profile change failed. More info: com.iplanet.portalserver.ipsadmin.Component"
I just added some more attributes to the xml file
that look like these :
<!- BEGIN NEW ATTRIBUTES -->
<iwt:Att name="iwtUserInfoProvider-EntryDN"
desc="Entry DN"
type="string"
idx="a204"
userConfigurable="TRUE">
<Val>New</Val>
<Rperm>ADMIN</Rperm><Rperm>OWNER</Rperm>
<Wperm>ADMIN</Wperm><Wperm>OWNER</Wperm>
</iwt:Att>
<!- END NEW ATTRIBUTES -->
Question:
1. What did I do wrong?
2. Is there a log file that stores the ipsadmin
errors?
./ipsadmin -chkxml iwtUserInfoProvider.xml
returned "Operation completed successfully".
So I know there is nothing wrong with the xml
file.
Any help in fixing this problem is gratefully appreciated.
Thanks
SahadevHi There,
The ipsadmin tool does not seem to be able to dynamically add any new attributes to a component. the best would be to do a "ipsadmin delete component iwtUserInfoProver" and then "ipsadmin -import iwtUserInfoProvider.xml" this should "update" the component with the new attribute.
HTH. -
Java and XML . PLEASE help
Hi,
I am using a SAX Parser to create XML documnets on the fly
I am creating an xml document with some elements
<name> userName </name>
<pwd> pwd </pwd>
Is there any class which can be used to create tag names
like CreateTag("name") and endTag();
which will create <name> </name>wouldn't be hard to write a method to do that:
public String createTag(String tag) {
StringBuffer buffer = new StringBuffer();
buffer.append("<").append(name).append(">");
return buffer.toString();
}
Maybe you are looking for
-
Hi, I just installed Primavera 6 (P6) on my computer at work. The tool, Claim digger wont work. When I click on it, it seems to load just for a second and nothing happens. I re-installed the program and it still did not work. How can I get to work? T
-
I constantly have the following in a bar at the top of the CNN page: "Firefox prevented this page from automatically reloading". Ii is accompanied by an "Allow" button. How do I get rid of that. I also have on every site randomly highlighted words in
-
Creating a Hierarchy of Tables
Hello everyone, I've started building a GUI application in Java, and I was looking for a way to display expandable, nested tables. What I mean is having an option to click certain squares, causing sub tables to be displayed in the row below, moving t
-
Change hostname on SAP Content Server
Hi Gurus, I'm investigating the effort required to change the hostname on a SAP content server. I'm well aware that with a SAP ABAP or Java instance we must use system copy tools to achieve this but with SAP Content server is there an easier way? It
-
A friend uses iMovie (sorry, not sure which version) and saves his files onto a large external hard drive. However, he keeps getting messages that the hard drive on the computer is full cose to capacity. Does iMovie place backups, or any other files,