How to find the xml elements in Indesign pages
i imported the xml file in vb.net. now i want to find the number of pages and no. of elements. i found out it. but i was not able to find which elements are placed in which page. i want that information. plz kindly help. i am using vb.net.<br />for eg. <ce:figure> placed in which page no., <ce:sections> placed in which page no., etc..,
I imported the xml file in vb.net. now i want to find the number of pages and no. of elements. i found out it. but i was not able to find which elements are placed in which page. i want that information. plz kindly help. i am using vb.net. for eg. <ce:figure> placed in which page no., <ce:sections> placed in which page no., etc..,
Similar Messages
-
How to Find the XML Tag in indesign
HI!!<br /><br />We are working with XML work flow in indesign. In indesign how could we find the XML Tag in indesign.<br /><br />Example::<br />In the Below list we could have to find the xml tag <chapter> in story editor or in the main text frame in indesign using find option. Kindely sent if any Plugins is available.<br /><br />For exmaple:<br />************<br /><book><br /> <part><br /> <chapter><br /> <head><br /> <para><br /> <bold><br /><br />Thanks,<br />C.K.Venkatesan
I imported the xml file in vb.net. now i want to find the number of pages and no. of elements. i found out it. but i was not able to find which elements are placed in which page. i want that information. plz kindly help. i am using vb.net. for eg. <ce:figure> placed in which page no., <ce:sections> placed in which page no., etc..,
-
Find the XML Element [ email ]
Hi All,
I am new to InDesign scripting.
I want to know how to find the XML Element [<email>] in n number of nested structure?
Give me any idea.
Thanks, RAJHi RAJ,
See my updated code below:
var myDocument = app.activeDocument;
FindEmail(myDocument);
alert("process Completed");
function FindEmail(elm)
for (var i = 0; i < elm.xmlElements.length; i++)
XMLelementName=elm.xmlElements[i].markupTag.name.toString();
if(XMLelementName=="email")
elm.xmlElements[i].markupTag = "mail";
FindEmail(elm.xmlElements[i]);
Regards,
Ramkumar .P -
How to find the WBS element for the payment document?
Dear All,
How to find the WBS element in the payment document?...I know in payment doc there will not be any WBS but is there any option where I can find in any of the Tables.
I am in the process of developing a Z report where i need to fetch the payment documents based on WBS. Can any one please help me on this.Hi Ram,
As you are not giving any input of WBS at the time of payment you cannot fetch this directly. But to know the WBS for the reporting purpose on which WBS the payment has been made, you can develop a Z-Report. The WBS elements of clearing documents against the payment entry can be fetched out.
In this report if there is a single payment against many invoices also possible with different invoice and WBS elements to be displayed on the Z-Report
Regards
Divya S -
How to find the XML file size in the scenarios?
Hi All,
Recently i have attended an interview at a MNC.
They asked some realtime questions like
1.how to find the XML document size in a File-File scenario?
2.What is mass-assignment replication etc.....
Can anybody tell me the solution for these.
Best regards
Hari prasadIf the input is a flat file, there is no exact way to calculate the size of the generated XML file, since it depends on many factors (number of fields in the recordsets, size of the name of the fields, number of records, etc).
As a rule of thumb, generally ppl use XML file size = 2 x Flat file size, in order to do sizing calculations etc. But again, that is just an estimation, not a precise calculation.
Regards,
Henrique. -
TS1702 how to find the serial number, after purchase Pages online?
how to find the serial number, after purchase Pages online?
If you downloaded the standalone trial version of Lightroom, it will be necessary for you to uninstall that version. Then you will be able to install Lightroom through the creative cloud application manager. After you install Lightroom that way, just double-click on the catalog that you have already started.
-
[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 to find the available parameters in Framework Page
Hi All,
I am new to OA Framework need some help. I need to find out the list of parameters for a Framework page. Once I know the available parameter then I can pass the value so that page rendering will be based on the parameter value.
How to know the list of parameters. Are they available in a Table or XML file.
Thanks for your help.Sorry I am not clear earlier. Here is my requirement:
I am implementing iRecruitment product at a client site. Customer want to upload the available jobs on external site like (Dice.com). When a job seeker clicks on the available job 'Apply now' link the control is coming to iRecruitment main page but that particular job information is not displayed
But the customer requirement is the URL attached to external job site should also contain the job id so that particular job information will be displayed when the control comes to iRecruitment product.
So my idea is to find out if this job id parameter existed in the given page. If it existed then I can add the same to the URL in the browser page.
Thanks -
How to find the last element of a byte array
Dear all,
I have a byte array with a max lenght of 1024*50 bytes. In that array I store the bytes read from a file. How can I find where the array ends (i.e. which is the last valid element of the byte array)?
Thank you for your help.
Best Regards,
JIMI want to send files over TCP connection using BufferedOutputStreams and BufferedInputStreams. The first side (e.g. the client) sends a file (e.g mp3 file or jpeg image) to the server using the code
public void sendFile(Socket s, String FileName) throws Exception
BufferedOutputStream out = new BufferedOutputStream(s.getOutputStream());
BufferedInputStream in = new BufferedInputStream(new FileInputStream(FileName));
int len = 0;
while ( (len = in.read(buffer)) > 0) {
out.write(buffer, 0, len);
in.close();
out.flush();
}(The client does not close the BufferedOutputStream out because other files will be sent afterwards)
Then, the server receives the file using the code:
public void receiveFile(Socket s, String FileName) throws Exception
OutputStream out = new BufferedOutputStream(new FileOutputStream(FileName));
InputStream in = new BufferedInputStream(s.getInputStream());
int len = 0;
while ( (len = in.read(buffer)) > 0) {
out.write(buffer, 0, len);
break;
out.flush();
out.close();
}(likewise the InputStream in is not closed for the same reasons).
In order the server to receive the file and stop reading the BufferedInputStream, I will have to make some modifications to this part of the code,
while ( (len = in.read(buffer)) > 0)so as to know when the whole file has been received.
Thus, even if I send the length of each file, I will not be able to read it. Could you please recommend me a solution? -
How to get the xml element and comment name in a page?
I need to list all element and comment name in a page
Hi,
do
//K2Vector<XMLReference> allXMLRefs;
std::vector<XMLReference> allXMLRefs;
IActiveContext* context = GetExecutionContextSession()->GetActiveContext();
UIDRef documentUIDRef = ::GetUIDRef(context->GetContextDocument());
XMLReference rootXMLRef = GetRootXMLReference(documentUIDRef);
GetFlattenedElementList(documentUIDRef,allXMLRefs);
std::ostringstream os;
for(std::vector<XMLReference>::iterator it = allXMLRefs.begin(); it != allXMLRefs.end(); ++it)
XMLReference nextref = *it;
PMString tag_name;
os.str("");
os << AsString(nextref,tag_name).GetPlatformString().c_str();
CAlert::WarningAlert(os.str().c_str());
}while(kFalse);
I use above code to get tag name.
Any one help me to get the comment tag in XML -
How to find the URL address of portal page ?
Hello All,
How to access a page from Portal Content Directory without logging into Portals ?
Can we know the URL address for a Portal page so tht it can be called from another page via href object.
Pls, provide me with an alternate solution that works better.
Thank you for your time and valuable inputs. Looking forward to your responses.
Regards,
Anil Kumar.Hi,
It is quite simple to find out the URL of a page, Check this for more:
/thread/426798 [original link is broken]
http://help.sap.com/saphelp_nw70/helpdata/en/43/014421d21d6fade10000000a11466f/frameset.htm
Greetings,
Praveen Gudapati -
How to get the XML file if we are using the Product short name.
Hi,
Till now I have used Short name of the Concurrent Program for Code while creating a Data Definition. Now saw a seeded template which has given the Code by Product short name. If we have the concurrent program then it is easy to refer the fields by checking the XML file. In this case how to find the XML file or how to refer all the fields if we have given code with Product short name. I saw this for iReceivables(ARI). Anybody please help me.
Thanks.Hi Siva
Just to clarify, rather than the short name of the conc program there is a shipped data definition that just uses the product short name? What is the data def so I can check it.
Regards, Tim -
Manipulate the browser elements in report page....
Hi,
How to manipulate the browser elements in report page? i.e hiding the field element, hiding entire row, disable or enable a particular cell(or text field) from a row, hiding value in a cell....so on.
i used apex_items to create a report text fields.
I tried to manipulate fields using javascript API's, i cant get to...
how to do this?
Thanks....ok,
I would like to order:
first row: label1 spacer texfield1 spacer label2 texfield2 label3 spacer label3...
secod row: label4 spa.....similarly
I use a af:panelformLayout with rows 2 and maxColumns 3, but no orders.... -
How to Find the Index of Element in the XMLListCollection
Hi,
I have a burning question here, and I wonder if anyone has tried to do this.
I have an XML file that is read into the xml collection, and for each of the names that appear in the file (pre-declared somewhere else) , I tried to remove the element.
However, it either gives me -1, if I do trace(slc.getItemIndex(xml.@name).toString()); when they exist, or tell me #3594 as shown in the error below:
Here is the code:
private function checkBox_change(event:Event):void{
xlc = new XMLListCollection(searchResult..book);
len = searchResult..publisher.length();
for (idx=0;idx<len; idx++) {
if (checkBox[idx].selected == false) {
for each (name in input_name2) {
for each (xml in xlc){
if ((xml.@name == checkBox[idx].label) && (xml.@pub == name)){
trace(xml.getItemIndex(xml.@name).toString());
//I get an error that says 3594: getItemIndex is not a recognized method of the dynamic class XML.
Could anyone please give me some pointers on how to remove the desired element? I do know how to use splice.
Thanks for your help.
AliceAlice you could do something like this
delete myXML.(@ISBN=="4689997865")
Sincerely,
Michael
El 04/05/2009, a las 11:54, alice_data <[email protected]> escribió:
>
Hi,
>
I have a burning question here, and I wonder if anyone has tried to
do this.
I have an XML file that is read into the xml collection, and for
each of the names that appear in the file (pre-declared somewhere
else) , I tried to remove the element.
>
However, it either gives me -1, if I do
trace(slc.getItemIndex(xml.@name).toString()); when they exist, or
tell me #3594 as shown in the error below:
>
Here is the code:
>
private function checkBox_change(event:Event):void{
xlc = new XMLListCollection(searchResult..book);
len = searchResult..publisher.length();
for (idx=0;idx<len; idx++) {
if (checkBox[idx].selected == false) {
for each (name in input_name2) {
for each (xml in xlc){
if ((xml.@name == checkBox[idx].label) &&
(xml.@pub == name)){
trace(xml.getItemIndex(xml.@name).toString());
//I get an error that says 3594: getItemIndex is not a
recognized method of the dynamic class XML.
>
>
Could anyone please give me some pointers on how to remove the
desired element? I do know how to use splice.
Thanks for your help.
>
Alice
> -
[InDesign CS3] how to find the reason of the memory leaks?
Hi all,
I'm working with InDesign CS3. I wrote a plug-in and loaded it into InDesign in debug mode. After I closed the application, I got a console window showing memory leaks as following:
Leaks! 52 leaks, 716804 bytes
Press any key to continue . . .
Does anybody know how to find the reason of the memory leaks? Thanks a lot!
NicoleThanks Dave. I'm using Windows, and I also tried MemoryTracker. I got a Leaks.txt which shows the detail of memory leaks as following. But I really can't understand it. Any help? Thanks.<br /><br />Leaks! 7 leaks, 455252 bytes<br /><br />65036 bytes at: 7B22FF8<br /> 4172627C MemoryPool::GetNonPoolSizePeak cannot be found in any module!<br /> 00EDC1CB K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 01C9C74F cannot find address in any module!<br /> 01C96DEC BIBGetVersion cannot be found in any module!<br /> 01C96E60 BIBGetVersion cannot be found in any module!<br /> 01C979E4 cannot find address in any module!<br /> 0131F511 K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 0131F4C4 K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 00EDBC7E K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 00EDBFBE K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 00EDC558 K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 1002C26E cannot find address in any module!<br /> 1002BFB9 cannot find address in any module!<br /> 00401644 cannot find address in any module!<br /> 00405146 cannot find address in any module!<br /> 00404EBD cannot find address in any module!<br /> 7C817067 RegisterWaitForInputIdle cannot be found in any module!<br />65036 bytes at: 7B32E38<br /> 4172627C MemoryPool::GetNonPoolSizePeak cannot be found in any module!<br /> 00EDC1CB K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 01C9C74F cannot find address in any module!<br /> 01C96DEC BIBGetVersion cannot be found in any module!<br /> 01BB149B cannot find address in any module!<br /> 01BB4C62 cannot find address in any module!<br /> 00EDBCE3 K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 00EDBFBE K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 00EDC558 K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 1002C26E cannot find address in any module!<br /> 1002BFB9 cannot find address in any module!<br /> 00401644 cannot find address in any module!<br /> 00405146 cannot find address in any module!<br /> 00404EBD cannot find address in any module!<br /> 7C817067 RegisterWaitForInputIdle cannot be found in any module!<br />65036 bytes at: 7B52AB8<br /> 4172627C MemoryPool::GetNonPoolSizePeak cannot be found in any module!<br /> 00EDC1CB K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 01C9C74F cannot find address in any module!<br /> 01C96DEC BIBGetVersion cannot be found in any module!<br /> 02331A7A cannot find address in any module!<br /> 0236E7CD cannot find address in any module!<br /> 43726F6C cannot find address in any module!<br />65036 bytes at: 7C93D80<br /> 4172627C MemoryPool::GetNonPoolSizePeak cannot be found in any module!<br /> 00EDC1CB K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 01C9C74F cannot find address in any module!<br /> 02331F36 cannot find address in any module!<br /> 02367F85 cannot find address in any module!<br /> 02415DB4 cannot find address in any module!<br /> 3F800000 cannot find address in any module!<br /> 02416799 cannot find address in any module!<br /> FFFFFF11 cannot find address in any module!<br />65036 bytes at: 7CD6028<br /> 4172627C MemoryPool::GetNonPoolSizePeak cannot be found in any module!<br /> 00EDC1CB K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 01C9C74F cannot find address in any module!<br /> 01CE1C14 cannot find address in any module!<br /> 01DD9346 CTGetVersion cannot be found in any module!<br /> 01D9B052 CTGetVersion cannot be found in any module!<br /> 01D9B189 CTGetVersion cannot be found in any module!<br /> 01D9BB21 CTGetVersion cannot be found in any module!<br /> 01D9BD0C CTGetVersion cannot be found in any module!<br /> 01D9CE96 CTGetVersion cannot be found in any module!<br /> 01D9CEFF CTGetVersion cannot be found in any module!<br /> 01DDBEA2 CTGetVersion cannot be found in any module!<br /> 01DDC214 CTGetVersion cannot be found in any module!<br /> 01DDC7C6 CTGetVersion cannot be found in any module!<br />65036 bytes at: 16D68200<br /> 4172627C MemoryPool::GetNonPoolSizePeak cannot be found in any module!<br /> 00EDC1CB K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 01C9C74F cannot find address in any module!<br /> 01BB178C cannot find address in any module!<br /> 01BCE7C8 cannot find address in any module!<br /> 01BCEE13 cannot find address in any module!<br /> 01BD28C5 cannot find address in any module!<br /> 01BD4CB7 cannot find address in any module!<br />65036 bytes at: 20B68F88<br /> 4172627C MemoryPool::GetNonPoolSizePeak cannot be found in any module!<br /> 00EDC1CB K2Internals::K2VectorBase<HolderPtr<IPMUnknown>,K2Allocator<HolderPtr <IPMUnknown> > >::fill_insert cannot be found in any module!<br /> 01C9C74F cannot find address in any module!<br /> 01CE1C14 cannot find address in any module!<br /> 01D2F1A1 cannot find address in any module!<br /> 01D6F789 CTGetVersion cannot be found in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!<br /> 07BFB464 cannot find address in any module!
Maybe you are looking for
-
Can not create directory error while creating database
i am creating database using dbca in oel but when i try to do so i get an error saying can not create directory pawii and pawii is the sid actually oracle is installed on u01 and i am creating database in u02 but this error is not allowing me to crea
-
How to add Trip reason while creating a Travel request
Hi, I want to add Trip reason while creating a Travel request . I have not been able to maintain FTPT_REQ_HEAD through sm30. Urgent help required
-
Backup ITunes in Windows Vista
Hi, Can someone please advise the best way to backup Itunes (10.2.2.12)? Need to backup the full thing, as i am going to windows 7 new install rather than an upgrade. Music is easy to backup in my music folder, copy over and tell ituneds to use tha
-
I have a customer that does a front and back newsletter in photoshop. They use 100% black and 100% magenta and save it as a .psd. (They don't have no other layout programs) How can I put it in an IndesignCS2 or quark document and separate it into 2 c
-
How to read/unzip a specific file within a zip file
Hi, I have a file within a zip file that contains a timestamp - I want to read this timestamp and then create a destination directory for the remaining zip files to be unzipped into. Since I know the name of the file with the timestamp in it I though