Get images with xml

Hi All,
I need a JAVA script coding to get more images while doing xml import.
I have followed the xml coding as per below, please anyone help for this
<imageobject><Image href="CH11_010.jpg"/>
Thanks,
Selva

I'm using the below script for import xml with image, xml working fine. But not working the import image and not display the import image path, can you please help for this and good to me for what I have made the mistake
var myTemplate = File.openDialog("choose a template");
var myFolder = Folder.selectDialog("choose a folder to process");
var myDocs = myFolder.getFiles("*.xml");
for (i = 0; i < myDocs.length; i++) {
// open template :
var newDoc = app.open(myTemplate);
// import XML :
var myXMLImportPreferences = newDoc.xmlImportPreferences;
myXMLImportPreferences.allowTransform = false;
myXMLImportPreferences.createLinkToXML = false;
myXMLImportPreferences.ignoreUnmatchedIncoming = false;
myXMLImportPreferences.importCALSTables = false;
myXMLImportPreferences.importTextIntoTables = false;
myXMLImportPreferences.importToSelected = false;
myXMLImportPreferences.removeUnmatchedExisting = false;
myXMLImportPreferences.ignoreWhitespace = false;
myXMLImportPreferences.repeatTextElements = false;
newDoc.importXML(myDocs[i]);
// add additional document-specific processing steps here
document.textPreferences.smartTextReflow = true;
document.textPreferences.limitToMasterTextFrames = false;
document.textPreferences.deleteEmptyPages = false;
document.textPreferences.addPages = AddPageOptions.END_OF_STORY;
for(var index = 0; index < 10; index++)
Output screen shot here:

Similar Messages

  • Guidance on getting started with XML/SOAP and JDeveloper

    I am not a novice programmer, but I am new to Java and web services and I need to get up to speed very quickly on JDeveloper, XML, SOAP, WSDL, UDDI, etc. Nothing I have read so far is making any sense. Could anyone please suggest the best place to start getting grounded in XML/SOAP messaging. It is my task to send and receive messages to an existing SOAP service on the web conveying data from our E-Bis Suite. Thanks, Bill.

    Thanks! I made it through the JDeveloper Tutorial. I see a tutorial on the list specifically for Web Service from WSDL, so that's next. Hopefully, as I study the pieces, it will become easier to see how they all fit together.

  • Retrieve "Description" metadata from image with XML

    I'm trying to create an automated workflow for some of my newspaper pages. I've learned how to use XML to import text into different tags on the page, and images into tagged image boxes on the page. My question now is how to generate "Description" info that is located within the images metadata under "File Info." You see, our photographer saves his images as a jpg and adds the caption info under "description" before saving in Photoshop. I want to have this "description" meta data to import in one shot along with my headlines, text and images. Right now I have to manually "Generate a caption" or create a Live Caption." It seems to me like there must be a way to generate the "description" info into and existing text box underneath a photo.
    See screen shot below for an example of where I am trying to generate the caption. I want to generate the text "An Overall of Village Greens Golf Club" when I import my XML file. I don't like using the "Live Caption" optin because if the text box isn't touching the image box, the info disappears. Is there an alternate way?
    Thanks a lot!
    -Steve

    I am sorry, you will need to use the caption functionality. And yes, the caption's text frame has to touch the image or has to be in a group with the image, at least for live caption. But what is the problem here? If you need a distance of the text to the image set up an object style which has set up a text offset at the top and will bring the text in the wanted distance to the image.
    That was answer to your question.
    Another thing I see in your screen shoot is a very complicated layout. You could simplify a lot when you
    use the span column function for the Headlines
    use only one text frame
    use an anchored frame, settings saved in object style for the photo on the left top
    use only automatic hyphenation and use the user dictionary
    avoid multiple spaces in any circumstance and use fix sized spaces in their place.
    work with layers.

  • Getting Started with XML

    I need some help learning what tools to use when developing some XML stuff. I have created some .xml documents, but now I have no idea how to parse this stuff in a meaningful way. Thanks very much.

    Hi,
    Perhaps if you tell us more specifically as to what you are planning on doing with your XML files, we can help you out.
    Thanks,
    Oracle XML Team

  • AS3 get url with XML

    Hello,
    I have a gallery set up and would like to use a thumbnail as a rollover hyperlink.
    If anyone can help it would be much appreciated.
    Kind Regards, Damien
    My AS code is :
    // make the thumbnail clickable
    private function eableThumb():void{
    var len : int = thumbArr.length;
    for(var i:int = 0;i<len;i++){
    thumbArr[i].buttonMode = true;
    thumbArr[i].addEventListener(MouseEvent.CLICK, clickThumb); 
    thumbArr[i].addEventListener(MouseEvent.MOUSE_OVER,overImage);
    thumbArr[i].addEventListener(MouseEvent.MOUSE_OUT,outImage);
    My XML code is :
    <gallery title="Home"> 
    <info>
    <![CDATA[<body>Hey Kids, you can view the <font color="#333333" size="13px">Video Gallery</font> here. These are the featured highlights from the weekend. If you'd
    like entire colections please go to the <font color="#333333" size="13px">Download Section</font> tI semper eros ante eget leo. Maecenas lacus. Vivamus et risus. Sed at lectus at ante elementum bibendum.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet lacus vel mi dignissim pretium.</body>
    ]]>
    </info>     
    <image img="images/test/47.jpg" icon="icons/test/47.jpg" Url="http://www.blah.com" /> ></image>
    <image img="images/test/48.jpg" icon="icons/test/48.jpg"></image>
    <image img="images/test/50.jpg" icon="icons/test/50.jpg"></image>
    <image img="images/test/51.jpg" icon="icons/test/51.jpg"></image>
    <image img="images/test/52.jpg" icon="icons/test/52.jpg"></image>
    <image img="images/test/53.jpg" icon="icons/test/53.jpg"></image>
    <image img="images/test/54.jpg" icon="icons/test/54.jpg"></image>
    <image img="images/test/55.jpg" icon="icons/test/55.jpg"></image>
    <image img="images/test/56.jpg" icon="icons/test/56.jpg"></image>    
    <image img="images/test/57.jpg" icon="icons/test/57.jpg"></image>
    <image img="images/test/58.jpg" icon="icons/test/58.jpg"></image>
    <image img="images/test/60.jpg" icon="icons/test/60.jpg"></image>
    </gallery>

    http://www.flashmagazine.com/tutorials/detail/as3_photo_gallery/
    Check out this tutorial it very near to what ur trying to build

  • Getting start with XMl

    How dose this programm workand what can it do for my Web progets.
    How do I start with it? Any pre-installation?
    thanks
    Mark

    XMI is the XML representation of a UML diagram.
    http://www.oracle.com/technology/pub/notes/vohra_uml.html

  • Problems loading images dynamically with XML

    Hi Everyone,
    I am working with a project that was build by another
    developer and I have been asked to modify it several ways. This is
    an interactive map for a hotel brand where when you click on the
    USA, you get a list of all the states, click a state and a list of
    all the hotels in that state comes up, click a hotel, the hotel's
    information is displayed. I understand the structure of the files,
    how they make them work, though I couldn't build it myself.
    The problem I am having is this. can't make the hotels'
    photos load into the flash through the XML. I created a target
    movie file that the image could load into but something is not
    happening as far as loading the images. I don't know if the movie
    clip that I created is the right way to go (it was made as an
    object in the library that is exported via AS), or if I should
    create one in the action script file that loads the XML data.
    I looked at some tutorials about how to load images with XML
    but those didn't get into the level of detail that I need for this
    project.
    I've attached some partial code to see if anyone can help me
    work through this.
    Any and all suggestions are welcome.
    Thanks for the help in advance.
    Jeremiah

    I'm a noob at AS3 and trying to learn this XML stuff myself,
    but i have been able to load pictures to the stage...this might
    help you...my xml file photo section is similar to yours, only I
    have it labeled as "href" instead of "source"...
    var imageLoader:Loader;
    var xml:XML;
    var xmlList:XMLList;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("xmldata/images.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    function xmlLoaded(event:Event) :void {
    xml = XML(event.target.data);
    xmlList = xml.children();
    for (var i:int = 0; i<xmlList.length(); i++) {
    imageLoader = new Loader();
    imageLoader.load(new URLRequest(xmlList
    .attribute("href")));
    imageLoader.x = 0;
    imageLoader.y = 0;
    addChild(imageLoader);

  • Rich text box used in Infopath Form not displaying option to get images from Computer

    Hello,
    We have used "Rich text box" in Infopath Form which is not displaying option to get images from Computer.
    Options available are : From Address, From SharePoint
    But if we Rich text box in list, then it works fine with "From Computer" option.
    can you please help me out to get this option.
    Thanks in advance.
    REgards,
    Jayashri

    Hi,
    From your description, there is no “From Computer” option to get images with rich text box in InfoPath form.
    Per my knowledge, by design there are “From Address” and “From SharePoint” options without “From Computer” option in rich text box in InfoPath form. As a workaround, you can develop a custom InfoPath Rich Text box to do it.
    About developing a custom InfoPath control, I suggest you create a new thread on the forum “Visual Studio Tools for Office”, more experts will assist you with InfoPath development.
    Visual Studio Tools for Office:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=vsto&filter=alltypes&sort=lastpostdesc
    Thanks,
    Dean Wang

  • In bridge i select a jpg image with cntrl r to open in camera raw but get "camera raw not avail"

    In bridge i select a jpg image with cntrl r to open in camera raw but get "camera raw not available"  camera raw editing requires that a qualifying product has been launched at least once to enable this feature.  I can open nef. in camera raw with no problem.

    Hm, what I suggested might actually be a possibility then...
    Close whatever version you have open first...
    I think Adobe installs shortcuts for both 32 and 64 bit Photoshop in the start menu.
    If you can't find the 32 bit Start menu entry, look for the 32 executable here (changing the CS version number to whatever yours is):
    C:\Program Files (x86)\Adobe\Adobe Photoshop CS5\Photoshop.exe
    -Noel

  • Can't get photoshop elements 12 to print multiple copies of an image with one print job? what to do?

    Can't get photoshop elements 12 to print multiple copies of an image with one print job

    How do I do that? I'm the only user on the laptop - I kind of assumed I already was running the install as the admin.

  • We are trying to transfer files from PS Elements 13 to our web builder.  We are getting a '?' in the top left hand corners of some of the image boxes. It seems that we are unable to transfer images with this ? on the image.  We have spent a long time taki

    We are trying to 'reconnect' files.  we seem incapable to do so, for some reason.  Try as we might, we aren't able to do it.  can anyone help?

    Please see other thread
    Re: We are trying to transfer files from PS Elements 13 to our web builder.  We are getting a '?' in the top left hand corners of some of the image boxes. It seems that we are unable to transfer images with this ? on the image.  We have spent a long time

  • IPhone: How to get the original photo image with  Picker

    Hi!
    I'm trying to pick and send (via HTTP) the original image taken by the camera, the 1,600 x 1,2000 image that's available in iPhoto after syncing.
    As far as I gathered, the UIImage doesn't help me here, since it's scaled down to 640x480, probably to safe memory. But one should supposedly be able to access the underlying CIImage.
    Here's what I'm doing right now:
    I'm setting up an ImagePickerController in my
    - (void)viewDidLoad
    imagePickerController = [[UIImagePickerController alloc] init];
    imagePickerController.delegate = self;
    imagePickerController.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
    [self refreshView:self];
    and process the picked image with
    - (void)imagePickerController:(UIImagePickerController )picker didFinishPickingImage:(UIImage )image editingInfo:(NSDictionary )editingInfo
    CGImageRef imgRef = image.CGImage;
    CGFloat owidth = CGImageGetWidth(imgRef);
    CGFloat oheight = CGImageGetHeight(imgRef);
    NSLog(@"Original size = %f %f",owidth,oheight);
    NSData imageData = [NSData dataWithData: UIImagePNGRepresentation(image)];//(image, 1.0)
    However, I still get the following output:
    2008-07-25 11:44:58.543 myApplication[1564:20b] Original size = 640.000000 480.000000
    Obviously still scaled down - but there must be a way to access the original.
    What am I doing wrong?

    Yes, I'm trying on the iPhone, as the camera is unavailable on the simulator.
    Here is the code I'm using:
    // In my main code, to initialise the picker
    UIImagePickerController *picker;
    // Check if camera is available
    if ( ![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] )
    UIAlertView *alertView = [[UIAlertView alloc]
    initWithTitle:@"Can't access camera" message:@"The camera is unavailable!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil ];
    [alertView show];
    [alertView release];
    return;
    picker = [[UIImagePickerController alloc] init];
    picker.sourceType = UIImagePickerControllerSourceTypeCamera;
    picker.delegate = self;
    [_myView addSubview:picker.view];
    [_myView performSelectorOnMainThread:@selector(setNeedsDisplay) withObject:nil waitUntilDone:NO];
    // The delegate methods
    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
    NSLog( @"Image dimensions: %fx%f", image.size.width, image.size.height );
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    }

  • When clicking "Save image as" how can I get Firefox to auto add a (1) (2) etc at the end of the filename if an image with the same filename already exists?

    How can I get Firefox to automatically rename images when clicking "Save image as" on the menu, when an image with the same file name already exists in the folder??

    Hello,
    That is not a feature that is supported natively within Firefox but there are various add-ons which I think will do the job you need.
    The one I have used is [https://addons.mozilla.org/en-US/firefox/addon/web-slide-show/?src=search Web Slide Show]. This is primarily an add-on for viewing a slideshow of images when they are presented as thumbnails on a web page. However once you are in the slideshow there is a download button which will download all the images in the slideshow. It will automatically rename the images if an image with the same name already exists in the folder.
    If you don't like that add-on then here are some others that may do the same job:
    * [https://addons.mozilla.org/en-US/firefox/addon/image-download-%E2%85%B1/?src=search Image Download II]
    * [https://addons.mozilla.org/En-us/firefox/addon/image-picker/ Image Picker]
    I hope that helps. Let me know if not.
    Also I notice that you are using Firefox v23. That is now an outdated version. To get the latest security updates I suggest updating to version 24. See the support article here: [[Update Firefox to the latest version]].

  • Get Images from URL's with slight difference?

    Does anyone know how I can download an image referenced in a web page? Get Image URLS from webpage doesn't work, because it is referenced in an unusual way:
    <input type="image" name="theImage" src="http://www.mysite.co.uk.uk/myservlets/myServlet?reqtype=IMG&refresh=184949485733" align="bottom" border="0" WIDTH="400" HEIGHT="400">
    Prior to fetching the image urls, I download the web page from a link, it downloads as html, is there a way to download it as a web archive which might bring the image down as well?
    Rob

    If you're using Firefox, here's something else to try...
    While the web page containing images is open, click on *Tools > Page Info* (or press ⌘I). Click the Media tab and look for a list of image urls in the upper portion of the window. Select any or all of the image urls. Once highlighted, press the *Save As* button in the lower right side of the *Page Info* window. Choose a destination folder and press Open. Image files should be downloaded to the chosen folder.
    Unfortunately, however, during testing (in Firefox 3.6.13), I found that while this method worked fine with some sites, it didn't work so well with others -- Google Images, e.g., would not allow images to be saved. If you encounter similar trouble, you might try setting up and using the workflow below.
    First, create a dedicated download folder, with a name such as "*Firefox Images*." This is important because the workflow's actions will eventually filter out all but the image files in the selected folder -- and its subfolders -- and send any non-image files to the trash. Naturally you'd want to be certain your workflow is acting upon the correct folder, or risk losing essential files elsewhere.
    +Use these actions:+
    1) *Get Selected Finder Items*
    2) *Get Folder Contents* -- check "Repeat for each subfolder found"
    3) *Filter Finder Items* -- filter out non-images:
    Whose: File Type - *Is not* - TIFF Image File -- click the "+" button and add to the list:
    Whose: File Type - *Is not* - JPEG Image File -- click "+" and continue adding:
    Whose: File Type - *Is not* - JPEG 2000 Image File
    Whose: File Type - *Is not* - PICT Image File
    Whose: File Type - *Is not* - GIF Image File
    Whose: File Type - *Is not* - PNG Image File
    Whose: File Type - *Is not* - BMP Image File
    4) *Move to Trash*
    5) *Get Selected Finder Items*
    6) *Get Folder Contents* -- leave "Repeat for each subfolder found" unchecked
    7) *Filter Finder Items* -- remove the accompanying HTML file from the downloaded items:
    Whose: File Type - Is - HTML File
    8) *Move to Trash*
    From Automator's File menu choose *Save As > File Format: Application*. The saved applet will be used as a droplet.
    Firefox web pages to be processed should be saved directly to the newly created "*Firefox Images*" folder. Choose *Save As: Web Page, complete*. Saved web pages can be acted upon individually, or you can fill the Firefox Images folder with multiple saved pages before running the workflow. (How many would be too many to act upon before the workflow fails, however, is unknown; I tested the workflow on only a half dozen or so saved pages at a time).
    To run the workflow, simply drag and drop the Firefox Images folder onto the saved Automator applet's file icon and allow the workflow to complete.
    Good luck, hope this helps.

  • Getting started with Java and XML

    Hi,
    Although I am pretty familiar with Java, I am a total newbie with using it to parse XML. I have been reading quite a few tutorials so am getting a good understanding of it and am thinking of using the DOM model for my purposes.
    What I haven't been able to find, however, is how I can actually get started with this. I have tried compiling a few examples and have been getting errors such as:
    xmltest.java package javax.xml.parsers does not exist
    xmltest.java package org.w3c.dom does not existetc etc...
    It looks like these packages don't come with J2SE. Can anyone confirm this? Do I need to download and install the Java Web Services Developer Pack to solve this problem?
    Finally, I know I will need an XML parser but have read that JDK 1.4 has it's own parser (Crimson). Is this adequate for parsing XML files or will I also need a parser such as Xerces?
    Thanks so much for any help!

    Hi DrClap,
    Thanks for the reply. I have JDK 1.4.1_02 installed on my server but the following error keeps coming up when I try to run my example:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/NodeAre there any further packages I need to download in order to run Java with XML? I have read some people install JAXP and XERCES... are these necessary for parsing an XML document or should J2SE 1.4.1 be sufficient?
    Thanks for your help!
    Jill

Maybe you are looking for