Tree and XML Question

Hi,
I have this XML that is returned from a ColdFusion CFC. So in
Flex I have this code:
var treeXML:XML = new XML(event.result);
I am then assigning this to the dataProvider of my tree. This
works fine, but how can I get at each top level node in the tree? I
want to basically loop over the top level categories of the tree?
Thanks,
-Westside

"WestSide" <[email protected]> wrote in
message
news:gigrbp$9dc$[email protected]..
> Hi,
>
> I have this XML that is returned from a ColdFusion CFC.
So in Flex I have
> this code:
>
> var treeXML:XML = new XML(event.result);
>
> I am then assigning this to the dataProvider of my tree.
This works fine,
> but
> how can I get at each top level node in the tree? I want
to basically
> loop
> over the top level categories of the tree?
treeXML.children()
http://dispatchevent.org/roger/as3-e4x-rundown/

Similar Messages

  • Working with mx:tree and XML

    Hi there! I've been reading and googling for ages and I
    cannot find the solution to this problem, I want to load an xml
    into a <mx:tree> but i don't want to load all the xml
    structure. My xml look like this:
    <DataSet>
    <diffgr:diffgram>
    <NewDataSet>
    <Show>
    <uselessProperty>asdasd</uselessProperty>
    <uselessProperty1>asdasd</uselessProperty1>
    <uselessProperty2>asdasd</uselessProperty2>
    <uselessProperty3>asdasd</uselessProperty3>
    <Title>Title of the show</Title>
    <episodes>
    <episode1>
    <uselessProperty>asdasd</uselessProperty>
    <uselessProperty1>asdasd</uselessProperty1>
    <uselessProperty2>asdasd</uselessProperty2>
    <uselessProperty3>asdasd</uselessProperty3>
    <Title>Title of the show</Title>
    </episode1>
    <episode2>
    <uselessProperty>asdasd</uselessProperty>
    <uselessProperty1>asdasd</uselessProperty1>
    <uselessProperty2>asdasd</uselessProperty2>
    <uselessProperty3>asdasd</uselessProperty3>
    <Title>Title of the show</Title>
    </episode2>
    <episode3>
    <uselessProperty>asdasd</uselessProperty>
    <uselessProperty1>asdasd</uselessProperty1>
    <uselessProperty2>asdasd</uselessProperty2>
    <uselessProperty3>asdasd</uselessProperty3>
    <Title>Title of the episode</Title>
    </episode3>
    </episodes>
    </Show>
    <Show>
    <uselessProperty>asdasd</uselessProperty>
    <uselessProperty1>asdasd</uselessProperty1>
    <uselessProperty2>asdasd</uselessProperty2>
    <uselessProperty3>asdasd</uselessProperty3>
    <Title>Title of the show</Title>
    <episodes>
    <episode1>
    <uselessProperty>asdasd</uselessProperty>
    <uselessProperty1>asdasd</uselessProperty1>
    <uselessProperty2>asdasd</uselessProperty2>
    <uselessProperty3>asdasd</uselessProperty3>
    <Title>Title of the show</Title>
    </episode1>
    <episode2>
    <uselessProperty>asdasd</uselessProperty>
    <uselessProperty1>asdasd</uselessProperty1>
    <uselessProperty2>asdasd</uselessProperty2>
    <uselessProperty3>asdasd</uselessProperty3>
    <Title>Title of the show</Title>
    </episode2>
    <episode3>
    <uselessProperty>asdasd</uselessProperty>
    <uselessProperty1>asdasd</uselessProperty1>
    <uselessProperty2>asdasd</uselessProperty2>
    <uselessProperty3>asdasd</uselessProperty3>
    <Title>Title of the episode</Title>
    </episode3>
    </episodes>
    </Show>
    </NewDataSet>
    </diffgr:diffgram>
    </DataSet>
    I want to know if there is any way I can show the title of
    the show and the titles of the episodes as its children. By this
    time I've been just able to show the whole xml in the tree, but i
    just need those properties. I cannot find information about xml
    that doesn't have this format:
    <node property1="property" property1="property"
    property4="property" property3="property">
    <child property1="property" property1="property"
    property4="property" property3="property"/>
    <child property1="property" property1="property"
    property4="property" property3="property"/>
    <child property1="property" property1="property"
    property4="property" property3="property"/>
    </node>
    Please help me, my eyes will start bleeding if keep googling
    another nite.

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    initialize="e4xService.send()">
    <mx:Script>
    <![CDATA[
    import mx.events.TreeEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var xmlData:XMLList;
    [Bindable]
    private var selectedXML:XML;
    private function resultHandler(event:ResultEvent):void
    var result:XML = event.result as XML;
    xmlData = result..title as XMLList;
    private function treeChangeHandler(event:Event):void
    selectedXML = myTree.selectedItem as XML;
    var xmlName:String = selectedXML.name();
    while (xmlName != "title")
    selectedXML = selectedXML.parent();
    xmlName = selectedXML.name();
    private function treeItemOpenHandler(event:TreeEvent):void
    selectedXML = event.item as XML;
    myTree.selectedItem = selectedXML;
    ]]>
    </mx:Script>
    <mx:HTTPService id="e4xService"
    url="assets/videoTitles.xml"
    result="resultHandler(event)"
    resultFormat="e4x"/>
    <mx:HBox width="800">
    <mx:Panel id="treePanel"
    title="Course Data" width="50%">
    <mx:Tree id="myTree"
    dataProvider="{xmlData}"
    labelField="@label"
    width="300"
    change="treeChangeHandler(event)"
    itemOpen="treeItemOpenHandler(event)"/>
    </mx:Panel>
    <mx:Panel width="50%"
    height="{treePanel.height}">
    <mx:Form>
    <mx:FormItem label="Course Name:">
    <mx:Label text="{selectedXML.@label}"/>
    </mx:FormItem>
    <mx:FormItem label="Duration:">
    <mx:Label text="{selectedXML.duration.@label}"/>
    </mx:FormItem>
    </mx:Form>
    </mx:Panel>
    </mx:HBox>
    </mx:Application>
    XML File:
    <?xml version="1.0"?>
    <titles>
    <title label="Flash User Experience Best Practices"
    software="Flash">
    <duration label="4.25 hours"/>
    </title>
    <title label="Flash Professional 8 New Features"
    software="Flash">
    <duration label="1.0 hours"/>
    </title>
    <title label="Flash Professional 8 Essential Training"
    software="Flash">
    <duration label="11.5 hours"/>
    </title>
    <title label="Flash Professional 8 Beyond the Basics"
    software="Flash">
    <duration label="10 hours"/>
    </title>
    <title label="Flash Professional 8 Video Integration"
    software="Flash">
    <duration label="7.25 hours"/>
    </title>
    <title label="Photoshop CS2 and Flash 8 Integration"
    software="Photoshop">
    <duration label="2.5 hours"/>
    </title>
    </titles>

  • Tree and XML

    the only examples i found online for tree involve a XMLList.
    is it possible to use an XML to populate it?
    for example, my XML looks like this:
    [code]
    [Bindable]
    private var MyCat:XML =
    <categories>
    <category ID="0">
    <title>Category 1</title>
    <link ID2="0">
    <linkTitle>Link 1 Title</linkTitle>
    <linkURL>
    http://www.link1.com</linkURL>
    </link>
    </category>
    <category ID="1">
    <title>Categor 2 </title>
    <link ID2="0">
    <linkTitle>Link1 title</linkTitle>
    <linkURL>
    http://www.Line 1
    URL.com</linkURL>
    </link>
    <link ID2="1">
    <linkTitle>Link2 title</linkTitle>
    <linkURL>
    http://www.Line 2
    URL.com</linkURL>
    </link>
    </category>
    </categories>
    [/code]
    Thanks in advance!

    "WestSide" <[email protected]> wrote in
    message
    news:gigrbp$9dc$[email protected]..
    > Hi,
    >
    > I have this XML that is returned from a ColdFusion CFC.
    So in Flex I have
    > this code:
    >
    > var treeXML:XML = new XML(event.result);
    >
    > I am then assigning this to the dataProvider of my tree.
    This works fine,
    > but
    > how can I get at each top level node in the tree? I want
    to basically
    > loop
    > over the top level categories of the tree?
    treeXML.children()
    http://dispatchevent.org/roger/as3-e4x-rundown/

  • Bandwidth and xml question

    Hello to anyone out there with this same problem.
    We are have our podcast through the iTunes Music Store and we are using all our bandwith. So to circumvent this issue I have set up multiple hosting accounts and then I switch the links in the xml to point to the other servers and it gives us more bandwidth. The issue is that it seems to recognize that new line as a new episode and redownloads the podcast to the subscriber. Any help on this would be great.
    ITV

    That would be the expected behavior. The url is the unique identifier per podcast to most aggregators. Thus when you change the url, the aggregator thinks it's a different episode. It just might happen to have the same metadata like title & description.
    The best way to handle spreading load is with a load balancer. A simple way would be with DNS. If you have control over your DNS, you could setup multiple A records for your primary download site & point to servers on those multiple hosts. For instance, say you have your podcasts linked to download.itvnw.com. In DNS, you would put multiple A records for the hosts. Thus host 1, 2, 3, 4, ... N would all be listed as equivalent. Of course, this demands that the pathing beneath the hostname be identical & it's only round-robin not balancing load based on existing load, it's a good first start.
    In your case, it seems your demand for content has outgrown the bandwidth included in your base hosting, so it might be worth upgrading your hosting plan for more bandwidth.

  • Tree control and XML dataprovider

    Hi,
    I am trying to get this xml ( http://mitjafelicijan.net/test.xml ) working with my tree control in my Flex app and cannot figure it out how exactly to do this.
    my Flex code is this
    <mx:Tree left="0" top="0" bottom="0" showRoot="true" id="trvTreeview" right="0"></mx:Tree>
    and my AS code is this
    var tmp:XML = XML(event.target.data);
    trvTreeview.dataProvider = tmp.node;
    I get such output
    http://mitjafelicijan.net/tree.png

    The default data descriptor will see any child node as a child and claim that node is a folder.  If the xml node used attributes like this:
    Then there aren't any child nodes.  However, if you can't change the XML structure you can create a custom TreeDataDescriptor that is smarter about hasChildren()
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Unparsing a DOM tree and write XML to file

    Hi,
    I have created a DOM tree from scratch and would like to unparse the DOM tree and write the XML to a file, but how do I do that?
    Does anybody got code examples that do this?
    All help are very appreciated!
    /Daniel

    Thank you very much for the hint! Unfortunaly I still got problem to get it work though.
    I made a little piece of test code to try it but during the execution of the "Transformer.transform(source,result)" method I gets an "org.w3c.dom.DOMException".
    Does anybody see what that problem might be cause of by exmining the code below?
    I also would like to know how to specify the location where I would like to print out the XML file.
    Here is my little piece of test code:
    try{
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFadctory.newInstance();
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    Document doc = docBuilder.newDocument();
    doc.appendChild(doc.createElement("topLevel"));
    Element elm = doc.getDocumentElement();
    elm = (Element)elm.appendChild(doc.createElement("PersonData"));
    elm = (Element)elm.appendChild(doc.createElement("Name"));
    elm.setAttribute("Firstname","D");
    elm.setAttribute("Lastname", "D");
    DOMResult result = new DOMResult(doc);
    DOMSource source = new DOMSource(doc);
    TransformerFactory transformerFactory = TansformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    transformer.transform(source,result);
    }catch(ParserConfigurationException e) {
    }catch(IOException e) {
    }catch(TransformerException te) {

  • Question about Java,XSLT and XML

    I am new to Java and XML. I'm not quite clear the relationship between Java,XSLT and XML.
    To exercise, I am going to write a Java program that makes embedded calls to an XSLT processor(XALAN), to produce results for several constrained transformations from a given XML document(x.xml) such as:
    1.Transform the x.xml (which satisfies d1.dtd) in such a way that it now conforms to the DTD d2.dtd. Output the resulting xx.xml document.
    2.query some information from the x.xml and then form an Html output.
    3.summary some information, do some statistics from the x.xml and then form an Html output.
    I don't konw which java classes and XSLT functions might be used.(Actually I don't know how/where to start).
    Can anyone give me some clue ?
    thanks a lot!

    You must provide XSLT stylesheeds to specify transformations (1), (2),
    and (3); let's call those stylesheets task1.xsl and so on.
    The following code will transform x.xml into xx.xml according to task1.xsl. It gives you an idea which packages and classes to use, but it doesn't teach you proper Java programming technics :)
    import java.io.File;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    public class Test
        public static void main(String[] args) throws Exception
            TransformerFactory factory = TransformerFactory.newInstance();
            Source config = new StreamSource(new File("task1.xsl"));
            Transformer transformer = factory.newTransformer(config);
            Source source = new StreamSource(new File("x.xml"));
            Result result = new StreamResult(new File("xx.xml"));
            transformer.transform(source, result);
    }To read about XSLT, see:
    http://www.w3.org/TR/xslt
    there is a tutorial on using XSLT with Java:
    http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/index.html.

  • XML question on textnode null value

    Hi,
    I don't known XML use, I'm learning.
    My question is
    If in the DomDocument newsXML I append to "node" the newelement and a textnode, initially with not null value. Why, then, can't I setNodeValue to Null?
    newelement:=xmldom.createelement(newsXML,element_name);
    newnode:=xmldom.appendchild(node,xmldom.MAKENODE(newelement));     
    Textitem:=xmldom.createTextNode(newsXML,value);
    newnode:=xmldom.appendchild(newnode,xmldom.MAKENODE(Textitem));
    xmldom.setNodeValue(newnode,null); not possible!!!
    Why?
    Yet,
    is There another way to append a leaf null in the tree of xml?
    Thanks!

    I maybe wrong about this because my XML is a little rusty, but I thing a Node is null when we create it. It is only by adding a TextNode to it that we make it not null.
    If that's the wrong answer I will just suggest you visit one of the OTN XML forums which you can find here.
    Cheers, APC

  • How to mix HTML and XML??

    Hi guys,
    I want to stream some xml content to the browser from a servlet by setting the content-type as 'text/xml' and let IE browser take care of the parsing & formatting. It is important for me to show the formatted (tree structure) xml content in the browser. But I also need to show a text heading in the browser...Something like this ::
    Application XML Message ---> header text
    <xml>
    <id>.....
    <InvoiceDate>.....
    </xml>
    I know that the content has to be 'text/html' for the header text , and text/xml to let IE do automatic formatting of the xml data...How can I mix the contents? I don't want to format the xml file programattically or by using XSLT..Is it possible?
    Thanks guys

    I think it's possible; just create a page containing the header you want to display and an iFrame with the URL set to the address of the service that builds the XML. In fact you'll make two requests to server: one for the page containing the fancy header + the iFrame and one for the XML itself. Main page has text/html content and the contained iFrame will have text/xml content:
    More artistically:
    The header of the message
    The iFrame pointing to the URL that
    generates the XML.
    Be sure to use appropriate HTML styles so the iFrame border will not get displayed.

  • Tree and Tree Node Components - Threadinar7

    Hi All,
    This is the seventh in the "Threadinar" series , please see Threadinar6 at
    http://forum.sun.com/jive/thread.jspa?threadID=100601 for details
    In this Threadinar we will focus on the
    "Tree" and "Tree Node" Components
    Let us begin our discussion with the Tree Component.
    Tree Component
    You can drag the Tree component from the Palette's Basic category to the Visual Designer to create a hierarchical tree structure with nodes that can be expanded and collapsed, like the nodes in the Outline window. When the user clicks a node, the row will be highlighted. A tree is often used as a navigation mechanism.
    A tree contains Tree Node components, which act like hyperlinks. You can use a Tree Node to navigate to another page by setting its url property. You can also use a Tree Node to submit the current page. If the the Tree Node's action property is bound to an action event handler, selecting the node automatically submits the page. If the Tree Node's actionListener property is bound to an action listener, opening or closing the node automatically submits the page. You set Tree Node properties in the Tree Node Component Properties window.
    * If you use this component to navigate between pages of a portlet, do not use the url property to link to a page. Instead, use the Navigation editor to set up your links to pages.
    * Events related to tree node selection do not work correctly in portlets because the component uses cookies to pass the selected node id back and forth, and cookies are not correctly handled by the portlet container. You cannot handle tree node selection events in portlet projects.
    Initially when you drop a tree on a page, it has one root node labeled Tree and one subnode labeled Tree Node 1. You can add more nodes by dragging them to the tree and dropping them either on the root node to create top level nodes or on existing nodes to create subnodes of those nodes. You can also right-click the Tree or any Tree Node and choose Add Tree Node to add a subnode to the node.
    Additionally, you can work with the component in the Outline window, where the component and its child components are available as nodes. You can move a node from level to level easily in the Outline window, so you might want to work there if you are rearranging nodes. You can also add and delete tree nodes in the Outline window, just as in the Visual Designer.
    The Tree component has properties that, among other things, enable you change the root node's displayed text, change the appearance of the text, specify if expanding or collapsing a node requires a trip to the server, and specify whether node selection should automatically open or close the tree. To set the Tree's properties, select the Tree component in your page and use the Tree Component Properties window.
    The following Tutorial ("Using Tree Component") is very useful to learn using Tree components
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/sitemaptree.html
    See Also the Technical Article - "Working with the Tree Component and Tree Node Actions"
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/tree_component.html
    Tree Node Component
    You can drag the Tree Node component from the Palette's Basic category to a Tree component or another tree node in the Visual Designer to create a node in a hierarchical tree structure, similar to the tree you see in the Outline window.
    The tree node is created as a subnode of the node on which you drop it. If you drop the node on the tree component itself, a new node is created as a child of the root node. You can see the hierarchical structure clearly in the Outline window, where you can also easily move nodes around and reparent them.
    You can also add a tree node either to a Tree component or to a Tree Node component by right-clicking the component and choosing Add Tree Node.
    A Tree Node component by default is a container for an image and can be used to navigate to another page, submit the current page, or simply open or close the node if the node has child nodes.
    * If you select the Tree Node component's node Tree Node icon in the Outline window, you can edit its properties in the Tree Node Properties window. You can set things like whether or not the Tree Node is expanded by default, the tooltip for the Tree Node, the label for the tree node, and the Tree Node's identifier in your web application.
    * You can use a Tree Node to navigate to another page by setting its url property. You can also use a Tree Node to submit the current page. If the the Tree Node's action property is bound to an action event handler, selecting the node automatically submits the page. If the Tree Node's actionListener property is bound to an action listener, opening or closing the node automatically submits the page.
    - Note: If you use this component to navigate between pages of a portlet, do not use the url property to link to a page. Instead, use the Navigation editor to set up your links to pages. In addition, events related to tree node selection do not work correctly in portlets because the component uses cookies to pass the selected node id back and forth, and cookies are not correctly handled by the portlet container. You cannot handle tree node selection events in portlet projects.
    * If you select the image in the Tree Node, you can see that its icon property is set to TREE_DOCUMENT. If you right-click the image on the page and choose Set Image, you can either change the icon to another one or choose your own image in the Image Customizer dialog box. For more information on working with an image in a tree node, see Image component.
    - Note: The image used in a tree node works best if it is 16x16 or smaller. Larger images can work, but might appear overlapped in the Visual Designer. You can right-click the component and choose Preview in Browser feature to check the appearance of the images.
    Please share your comments, experiences, additional information, questions, feedback, etc. on these components.
    ------------------------------------------------------------------------------- --------------------

    One challenge I had experience was to make the tree
    always expanded on all pages (I placed my tree menu
    in a page fragment so I can just import it in my
    pages).Did you solve this problem. It would be interesting to know what you did.
    To expand a node you call setExpanded on the node. Here is some code from a tutorial that a coworker of mine is working on.
    In the prerender method:
           Integer expandedPersonId = getRequestBean1().getPersonId();
             // If expandedPersonId is null, then we are not coming back
            // from the Trip page. In that case we do not want any trip
            // nodes to be pre-selected (highlighted) due to browser cookies.
            if (expandedPersonId==null) {
                try {
                    HttpServletRequest req =(HttpServletRequest)
                    getExternalContext().getRequest();
                    Cookie[] cookies = req.getCookies();
                    //Check if cookies are set
                    if (cookies != null) {
                        for (int loop =0; loop < cookies.length; loop++) {
                            if (cookies[loop].getName().equals
                                    ("form1:displayTree-hi")) {
                                cookies[loop].setMaxAge(0);
                                HttpServletResponse response =(HttpServletResponse)
                                getExternalContext().getResponse();
                                response.addCookie(cookies[loop]);
                } catch (Exception e) {
                    error("Failure trying to clear highlighting of selected node:" +
                            e.getMessage());
            }                  ... (in a loop for tree nodes)...
                      personNode.setExpanded(newPersonId.equals
                                    (expandedPersonId));In the action method for the nodes:
           // Get the client id of the currently selected tree node
            String clientId = displayTree.getCookieSelectedTreeNode();
            // Extract component id from the client id
            String nodeId = clientId.substring(clientId.lastIndexOf(":")+1);
            // Find the tree node component with the given id
            TreeNode selectedNode =
                    (TreeNode) this.getForm1().findComponentById(nodeId);
            try {
                // Node's id property is composed of "trip" plus the trip id
                // Extract the trip id and save it for the next page
                Integer tripId = Integer.valueOf(selectedNode.getId().substring(4));
                getRequestBean1().setTripId(tripId);
            } catch (Exception e) {
                error("Can't convert node id to Integer: " +
                        selectedNode.getId().substring(4));
                return null;
    It would also be great if I can set the tree
    readonly where the user cannot toggle the expand
    property of the tree (hope this can be added to the
    tree functionality).

  • Capture Sharpen (and other questions)?

    I have been a very big advocate of capture sharpening for fine art workflow for more than a few years now (landscape fine art gallery enlargements). I was under the impression that in ACR (7.1) by using the Radius to the left (0.5) and Detail to the right (100) I was maximizing the deconvolution aspect of sharpening and maybe even drawing out a hair more real detail from the raw file.
    Today I did a test on a high frequency raw image (trees) and had my settings at Amount 45, Radius 0.5, Detail 0, and masking at 20. But then I also did it on the same image, this way: I brought a second version of the raw file into PS with no capture sharpening, and saved it as a tiff, then I brought that tiff back into ACR 7.1 and then did the capture sharpening. In Photoshop CS6 I put them on top of each other as layers (one raw sharpened and one tiff sharpened) and at all viewing distances they were exactly the same to my eye (I did notice that the histograms of each were very, very slightly different).
    But I could not see a single pixel or edge change anywhere in the image even at 1600% viewing distance. This seems to blow away my impression about deconvolution sharpening actually drawing out more real detail from a raw file. I totally understand that sharpening is not real detail, but on this forum years ago I came to believe that somehow a bit more real detail might be accessed in raw by the aforementioned settings. Any thoughts?
    Second question: do you really think there is a quantitative quality difference in detail (or the illusion of) in an image that has capture sharpening applied in ACR (7.1) at its native size, then is enlarged substantially with further rounds of sharpening and grain simulation in the end (versus just sizing it up soft and doing all the sharpening at the end)?  I did testing on this years ago and it seemed to be noticably better overall. I guess I'm just second guessing it again.
    My basic workflow is capture sharpen Radius 05. / Detail 100, then upsize with Smoother (40, 50, 60, 70 inches...) then do some moderate high pass, then advanced use of unsharp mask (LAB - L channel - or Luminosity - RGB - also blending/blend if sliders for fall off if necessary) then ACR grain simulation (on a seperate layer - not to create grainy photos - but create the illusion of more detail and to camouflage artifacting).  I believe after years of testing and practice this seems to be about as good as it gets for my content.
    Lastly, smart sharpen... I have not used this much, but do you think this workflow might benefit from using it instead of USM (with the more deconvolution - lens blur/more accurate) type of sharpen near the end)?
    Side note: for those involved with focus bracketing (for increased depth of field with the sharpest f/stop) it is common knowledge that capture sharpening at the raw stage (before the Auto Align and Auto Blend in PS) confuses the auto blend algorithm as to what are the real sharper pixels. So, we don't capture sharpen those images (this is common practice).
    And after blending the images (Auto Blend) we usually just size up (for enlargement) and go.  Now I am thinking that after the focus blending is finished and the file is flattened it might be a good idea to bring that tif file back into ACR and apply a little bit of capture sharpening before the upsize. Does that make sense to you?
    Cheers for your time and feedback!
    Message linebreaks added by: PECourtejoie

    Disclaimer: I did not entirely understand the original post, and maybe some of this does not apply in your multi-step process, so take with salt...
    ACRFREAK wrote:
    With low ISO shots (100) I always try to use the least noise reduction possible in ACR (less is more approach) which means on correctly exposed images ("to the right") on Canon cameras, my ACR settings are often 0 on luminance and 0-5 on color noise.
    At ISO 100, I rarely use any luminance noise reduction, however my experience is that even under ideal circumstances including low ISO, a modicum of color noise reduction is still essential for optimum image quality. - it is almost never desirable to set color noise reduction to zero, IMO - YMMV. (Note: in NX2 - you don't even get a choice about it - (true) color noise reduction will be applied, as Nikon sees fit).
    Note: ACR's color noise reduction algorithm is image adaptive (it's more "aggressive" on higher ISO shots). You shouldn't see much (if any real) detail loss with color noise reduction at 25 on ISO 100 shots, eh?
    ACRFREAK wrote:
    My theory is that I am trying to keep a much of the fine detail as possible. Also the reason I like the 0.5 radius and 100 detail.
    In my opinion, ideally, the sharpen settings should depend on the photo - type, and inherent focus... (.5/100 may be great for ultra-clean, ultra-sharp landscapes, but may not be appropriate for portraits...)
    But different strokes for different folks. (and I don't know what kinds of photos you mainly (or only) shoot).
    Rob

  • Drag and drop in tree and grid

    Hi all, I have one question on dragging and dropping from grid to/from tree.
    In a screen I have one tree and one grid. The following operations need to be performed on this screen.
    1. Drag from grid and drop in tree.
    2. Drag from tree and drop in grid.
    3. Drag from tree and drop in tree itself.
    Actually we will add the flavors for every action. Here I am confused in how many flavors I need to take.
    What I am taking right now are:
    For tree: 3 seperate flavors.
    For Grid: 2 seperate flavors.
    Can you please advise me on this.
    Thanks and Regards,
    Balakrishna.N

    Hello,
    Try with this programs
    BCALV_TEST_GRID_DRAG_DROP
    BCALV_TEST_DRAG_DROP_02

  • Spry Tables and Xml Data Sets viewed in IE7

    Has anyone ever run into a problem with Spry Tables and Xml
    Data Sets viewed in IE7? Work fine in IE6 and Firefox, but get the
    error "exception caught while loading feed.xml: [object Error]" in
    IE 7. Any ideas?
    Attached is the xml I'm using.
    Thanks

    I came looking for the answer to this question. I could not
    find an answer. Eventually I found it the answer that worked for
    me, a graphic designer with not much experience in xml.
    The following url provided an errata file in PDF format:
    www.peachpit.com/dwcs3cib
    which includes the following addendum to the incomplete
    instructions in the book i was using to learn about spry:
    "If Internet Explorer 7 is your primary browser, you'll nee
    to take some extra steps to view spry dynamic content locally.
    First, your site must be within the local server webroot; be sure
    your Lessons folder is stored within the Inetpub>wwwroot folder.
    Next, double-click the site name in the files panel to open the
    Site Definition dialogue. Click the Testing Server category; from
    the Access List choose Local/Network. Click Okay to close the Site
    Definition dialogue. Now, when you preview your page with Internet
    Explorer, your local Web server (localhost) serves the page as
    designed."
    Horray for me! Now i can move on from here and actually get
    some work done!

  • Reference Library for Converting Between LabVIEW and XML Data (GXML)

    Please provide feedback, comments and questions on the Reference Library for Converting Between LabVIEW and XML Data (GXML) in this thread.
    The latest version of the NI GXML Library is availble in VIPM on the NI LabVIEW  Tools Network repository.

    Francesco, Thank you for the feedback.  With this component it was my intention to make a more "terse" version of the LabVIEW Flatten to XML VI that was also supported on RT and that gave the user more flexbility regarding the structure of the parsing type definition. I think you are right that the XML parser is not compliant to section 2.11 of the XML spec.  The parser does specifically looking for a #D#A and this appears to be an oversight on my part.  Please confirm for me, the specifcation is saying that the XML parser should be able to recognize three possibilities as an "end of line" character: #D#A, #D, or #A.  Am I reading this right?There are more efficient (and in some cases much more efficient) ways of sharing data between LabVIEW and LabVIEW: some examples are flattened binary strings and the datalog binary format.  XML is slower than these optons but the upside is that it is human readable.  Furthermore XML is inherently hierarchical which is convenient for complex data structures like clusters of arrays of clusters, etc.  If you don't care about human readability then you are correct XML doesn't make as much sense.I will return to the GXML source code and try to fix this in the near future but I would hope that instead of creating yet another custom VI from scratch that you could reuse what I have provided for you.  I included enough documentation in the source code so that users could make some modificiations themselves. The target application for this reference library was LabVIEW to LabVIEW communication.  As such I documented the schema on the dev zone document from a LabVIEW perspective.  It includes all the supported datatypes and all the supported data structures (cluters, arrays, multidimensional arrays, clusters of multidimensional arrays, etc.)  I do see some value in making a more conventional XML spec but the time investment required didn't really line up with my intended use case. Were there any other downsides to GXML that I have missed?  Best Regards, Jeff TippsSystems Engineer - Sound and VibrationMessage Edited by Jeff T. on 04-21-2010 10:09 AM

  • Oracle to xml question

    hi friends
    i have a oracle table for country,city,town.
    this table is like a tree
    and it has 5000+ rows and has relation with some other tables
    this datas fill into dropdown(combobox)if user select county from combobox1 ,combobox2 fill with this country's city and go on like this........
    if i try convert table's datas to xml file and do querry from xml file instead of oracle table
    do fill comboboxes work faster? or is it bad idea?

    Well since I don't have a clue how you access the XML files generated and don't know how you access the tables in Oracle I can't tell you anything about performance with that level of detailed information. Still your approach sounds strange to me.
    But what I can tell you is that I have doubts if you're understanding the implications of your current approach: If you're going to write to files in triggers then you might end up with files that are not consistent with the database content.
    What will happen if the transaction that modifies the table is going to be rolled back (for whatever reason, you're not in control of all possible eventualities)?
    Then you've written content to your file that doesn't reflect your database properly.
    Also note that DML operations in Oracle under certain circumstances perform a so called "restart", which means that triggers might fire several times for each row.
    A possible workaround for these issues is performing your non-transactional operation (send a mail, write to a file etc.) in job that is submitted in the trigger, because the job submit procedure is transactional and therefore is rolled back if a rollback occurs and therefore the job is never going to be executed in that case.
    You can find more information about that issue e.g. by Tom Kyte here:
    http://www.oracle.com/technology/oramag/oracle/08-jul/o48asktom.html
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle:
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

Maybe you are looking for

  • Issuing during invocation of WS

    All, Version:10.1.3.4 Requirement: 3rd party application sends a PurchaseOrder thru WS channel, BPEL PM has to consume it, transform it and send it to Oracle Apps As I summarized before, my requirement is that the 3rd party application generates the

  • Dynamic Spry Photo Gallery Thumbnails

    I'm implementing the XML version of the Spry Photo Gallery. I need to edit the size of of the thumbnails and make them larger, roughly 100x130 or maybe a little smaller. Since I have so many photos, I was planning to use CSS to handle the overflow wi

  • Hi search help for my field?

    Hi friends,                I have got a input field in screen painter with name FORMNo. Formnos are stored in Zform table. I want to create search help for this field please can anyone share me the procedure for createing the search help for my field

  • PL/SQL COMWRAP.SQL COM Automation in Windows

    Hello All, Mike here. I'm not sure which forum this should go in so I put it here. I'm writing a pl/sql procedure that calls ordcom (create by comwrap.sql) which uses orawpcom11.dll to work with com automation objects on windows. It appears that ther

  • Why form builder crashed?

    hi, in oracle database 10g i created these types: create type obj1 as object att1 number, att2 varchar2(10) create type obj2 as table of obj1; create type obj3 as object a number, b obj2 in form builder i hadn't any problem with this code: declare lv