Simple namespace question

Hi:
I am working with XMP SDK, I saw the documentation having example to GetProperty:
meta.GetProperty( kXMP_NS_XMP, "CreatorTool", &value, &opts );
The first arguement is the namespace, but I do not know what is my name space? Can someone make some example of rdf file and what the namespace argument should be?
An example of a rdf file is:
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
     <rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1/'>
          <dc:subject>
               <rdf:Bag>
                    <rdf:li>XMP</rdf:li>
                    <rdf:li>SDK</rdf:li>
                    <rdf:li>Sample</rdf:li>
               </rdf:Bag>
          </dc:subject>
          <dc:format>image/jpeg</dc:format>
     </rdf:Description>
</rdf:RDF>
Thanks.

Greetings,
             the xmlns creates a namespace, so from what I have seen,
xmlns:dc='http://purl.org/dc/elements/1.1/'
Your namespace is dc I think, and your namespace URI is http://purl.org/dc/elements/1.1/
Carl

Similar Messages

  • Simple/silly question: how do I set/change default font/color for outgoing mail messages?

    Simple/silly question: how do I set/change default font/color for outgoing mail messages?

    Just a suggestion..........
    Download Thunderbird.  Easier to use when it comes to what you want to do w/your emails. 

  • 4 Simple Flash Questions that Are Stumping Me!

    What is the Frame Rate for Web Animations
    Q1. I am making an animation which will be played on the web. What is the default frame rate (fps) of Flash CS5? And what is the frame rate of for web?
    Q2. My animation needs to be 30 seconds long. So at 15 fps that would mean I need to use 600 frames in Flash?
    How Do I Mask everything so all I see is the Content on the Stage?
    I have a wide image that extends past my movies stage size so when I preview my movie the image is visible. How do I mask out anything that extends past my movies window size? I believe I can create a layer named "mask" and place it above all other layers, but I forget how to make the mask. Any help is appreciated.
    How to Fade a Graphic
    I have a graphic element (some type) and I want it to fade from 0% to 100%. In older versions of Flash I could just select the symbol and then set it's alpha value to 0%, move a few keyframes and then set the alpha to 100%. Voila! but now it doesn't seem to work that way. How can I do this in CS5?

    Ned, it says 24 fps which means there is 24 frames per second so each 24 frames is 1 second.
    Date: Fri, 4 Nov 2011 05:35:16 -0600
    From: [email protected]
    To: [email protected]
    Subject: 4 Simple Flash Questions that Are Stumping Me!
        Re: 4 Simple Flash Questions that Are Stumping Me!
        created by Ned Murphy in Flash Pro - General - View the full discussion
    1 You can create your character as a movieclip and copy/paste that movieclip from one file to another. 2. One way to create a movieclip is to copy all the frame of the animation's timeline (select them all, right click the selection, choose Copy Frames), then create a new movieclip symbol (Insert -> New Symbol...etc) right click on its only keyframe and chhose Paste Frames.  THat will put all the layers and frames you copied into the movieclip The only way to come close to being certain about the timing of you animation is to use code to keep track of the time, something like getTimer()..  The frame rate that a file plays at is not a reliable means of dictating the time it takes due to a variety of factors which include the amount of content you are trying to process and performance limits of the user's machine.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4007420#4007420
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4007420#4007420. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Flash Pro - General by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Simple performance question

    Simple performance question. the simplest way possible, assume
    I have a int[][][][][] matrix, and a boolean add. The array is several dimensions long.
    When add is true, I must add a constant value to each element in the array.
    When add is false, I must subtract a constant value to each element in the array.
    Assume this is very hot code, i.e. it is called very often. How expensive is the condition checking? I present the two scenarios.
    private void process(){
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
             if (add)
             matrix[i][ii][iii][...]  += constant;
             else
             matrix[i][ii][iii][...]  -= constant;
    private void process(){
      if (add)
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
             matrix[i][ii][iii][...]  += constant;
    else
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
           matrix[i][ii][iii][...]  -= constant;
    }Is the second scenario worth a significant performance boost? Without understanding how the compilers generates executable code, it seems that in the first case, n^d conditions are checked, whereas in the second, only 1. It is however, less elegant, but I am willing to do it for a significant improvement.

    erjoalgo wrote:
    I guess my real question is, will the compiler optimize the condition check out when it realizes the boolean value will not change through these iterations, and if it does not, is it worth doing that micro optimization?Almost certainly not; the main reason being that
    matrix[i][ii][iii][...]  +/-= constantis liable to take many times longer than the condition check, and you can't avoid it. That said, Mel's suggestion is probably the best.
    but I will follow amickr advice and not worry about it.Good idea. Saves you getting flamed with all the quotes about premature optimization.
    Winston

  • Basic namespace question

    Hello,
    A (possibly dumb) namespace question - a schema that we are coding against has the following declaration:
    <xs:schema xmlns="http://webservices.myco.com/mycoXML/2003/07" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://webservices.myco.com/mycoXML/2003/07" elementFormDefault="qualified">When this schema is xjc'ed and then the associated java objects populated, then marshalled into an xml request, it prefixes "ns2" to all the elements within the XML, possibly because there are 2 namespaces specified.
    the web service however throws a "Could not find element" error, because it's not expecting the ns2 prefix.
    The questions are:
    1. could this ns2 be suppressed?
    2. does it make sense to suppress it?
    any other background/info about this and the right way to resolve it would be greatly appreciated.
    [edit]
    I may have a partial answer to my question - w3.org's primer told me that since the elementFormDefault is set to qualified, and attributeFormDefault is (by default) unqualified, it uses the ns2 to differentiate between the two.
    when i added attributeFormDefault="qualified", it prefixed everything with an ns1, which the web service seems to be quite happy with.
    if anyone has any other comments/insights, i'd appreciate it.
    Thanks,
    Nilesh
    Edited by: nthali on Apr 15, 2010 2:04 PM

    Just to add to Tims response
    If you do calc dim on account first and then aggregate sparse dimensions, then its best to Fix on Level 0 of all the Sparse dimensions for the calc dim and then aggregate the sparse. Otherwise when you run the calc the second time the calculation will calc dim on all levels of all sparse dimension combinations (there will be data there from the previous aggregation). This can be very very slow. So see below
    FIX("Local", "HSP_InputValue", "Actual",  "Final", "Jan", "FY15")
      FIX(@RELATIVE("Entity",0),@RELATIVE("Product",0), @RELATIVE("Channel",0),@RELATIVE("Project",0))
    CALC DIM ("Account");
    ENDFIX
    AGG ("Entity","Product", "Channel", "Project",);
    ENDFIX;

  • A few simple Logic questions...please help.

    I have a few probably simple Logic questions, that are nonetheless frustrating me, wondering if someone could help me out.
    1. I run Logic 8, all of the sounds that came with logic seem to work except organ sounds. I can't trigger any organ sounds (MIDI) on Logic, they won't play. I have a Yamaha Motif as my midi controller.
    Any idea why?
    2. I've starting running into a situation where I will record a MIDI track, the notes are recorded but they won't playback. The only track effected is the one that was just recorded. All other midi tracks playback.
    I have to cut the track, usually go out of Logic and back in, re record for it to playback properly. Any idea why this may be happening?
    3. How important is it to update to Logic 9. Are there any disadvantages down the road if I don't upgrade. If I purchase the $200 upgrade, do I get a package of discs and material, or it just a web download.
    Any help is appreciated!
    Colin

    seeren wrote:
    Data Stream Studio wrote:
    3) You get a full set of disks and manuals.
    They're including manuals now?
    I think his referring to the booklets ...on how to install etc
    It would be great to see printed manuals though ...I love books especially Logic/Audio related !!
    A

  • Simple Quick Question

    wrong section, post was moved.
    Message was edited by:
    Rob17

    you titled "simple quick question"...
    .. complicated to answer..
    a) the TermsOfUse of the iTS don't allow any processing of purchased files, these are "copy protected"..
    b) iM has a voice-over function..
    c) iM is a video-edit app.. easy to use... just learn to handle it...
    d) iM allows to "extract" audio (=muting the original audio, adding your own..)
    e) to learn iM, spend some time here: http://www.apple.com/ilife/tutorials/imovie/index.html
    f) use pencil and paper first! WRITE and scribble, what shall happen when in your movie/parody... make a script, draw a storyboard .. THEN launch iM.. in other words: think first, then edit.. iM is just a tool, it does not "create"... Picasso needed a papertowel and half a stencil to create art....
    g) to get comfortable with iM, start with your own, small, short (3min!) project... import some stills, edit them, add a funny voice-over, add sounds, add music... good? make a bigger one...
    h) .. in our Lecture II, we teach you how to import shows from TV, youtube, wherever..
    standard disclaimer:
    be nice to ©opyrights ...

  • Simple query question

    hi all,
    I have a XMLType table with one column - I have presently one row, in my column xmlsitedata I have stored one large xml file.The schema definition is given below:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:element name="siteList">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="site" type="siteType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    - <xs:complexType name="siteType">
    - <xs:sequence>
    <xs:element name="nameEn" type="xs:string" />
    <xs:element name="nameFr" type="xs:string" />
    </xs:sequence>
    <xs:attribute name="code" type="xs:string" />
    </xs:complexType>
    </xs:schema>
    I have executed the query below:
    select x.XMLSITEDATA.extract('/siteList/site/nameEn/text()').getCLOBVal() "stName" from wsitelist x;
    and I get all english names of some 200 locations, however, there is 1 row selected and all names show up on one row. How do I split them into 200 or whatever rows?
    Thanks,
    Kowalsky

    Have a look at the answer provided in the following thread.
    very simple XML question
    This may solve your problem.
    use xmlsequence.
    Alvinder

  • Simple Oracle Questions

    Hello All
    I have a simple qusetion.
    I have been developing a .Net application which uses SQL Server 2005 Database.
    Now I am trying to convert it to use Oracle Database.
    I am trying to use the using System.Data.OracleClient namespace so that I can use the OracleConnection and such
    However when I type System.Data. I only get the SQLClient by default.
    Are ther any additional libraries or references that I need to insert into my project in order to access the the System.Data.OracleClient namespace?
    I am using VS 2005 Academic Edition.
    Thanks very mcuh in advance.
    Suzi

    You'll probably have better luck getting answers to .Net questions in this forum:
    ODP.NET
    There are lots of articles and examples here:
    http://www.oracle.com/technology/tech/dotnet/index.html

  • Simple Report Question

    Post Author: scott123
    CA Forum: General
    I want to take the information in a simple excel table and recreate it 3 times, each time sorting/grouping on a different columnHere is the tableAnd here is the report that I'm trying to generate (first sorted by name, alphabetically, then grouped by rank, then grouped by size) I'm comfortable working with excel tables in Crystal, but I'm running into a problem repeating the information and then sorting each group separately. I also have no problem doing each group in a single report (without repeating any records), but I'd like to include all 3 groups in a single report.  My apologies for how remedial this question is- I thought for sure that Crystal could do this easily but I've spent a couple of days on this and am running into a brick wall.

    Post Author: pandabear
    CA Forum: General
    That's right Scott, and maybe make them "on demand"
    sub reports so the user only has to see the data they
    really want at the moment.  Gives the report a nice clean look too.
    PB

  • A simple security question

    I'm trying to write a simple self-signed applet that use a jca provider but thi exception "java.security.SecurityPermission putProviderProperty.BC" is thrown. if I use a policy file, it works fine but for a beginner user is not very useful intall a new policy file.
    After this I tried to write a new self-signed applet that read a file and open a ServerSocket on port 21, and it work fine without a new policy file!
    My question is this: why is needed a policy file to add a provider and not to open a ServerSoket or read/write a file???????
    PS
    if u have an idea to resolve my problem without a policy file, tell me pls!!! IT'S URGENT!!

    An applet works out of a so-called sandbox. The security restrictions can be overcome in one of two ways that you have tried:
    1) by the use of a policy file, or
    2) by signing the applet
    So, to answer your question:
    My question is this: why is needed a policy file to add a provider and not to open a ServerSoket or read/write a file???????Since the applet is signed, there is no need for a policy file......if you tried to access the socket without signing the applet, you'll get the security exception!
    ;o)
    V.V.

  • A somewhat simple security question......

    If a mac running macosx has two separate user accounts, lets say one admin and the other a standard user, or both admins or both standard users.....
    Is it possible for a hacked/penetrated account on one of the users to affect or read any info from the other user on the same machine ?
    What application is in question; Safari lets say.....

    FLUIDNYC wrote:
    So, disable all scripts and uninstall all plugins from the browser.
    No java, No javascript, No plugins like flash, java, shockwave, quicktime, or adobe crap.
    So, no functionality. What about that java applet I need to run 10 hours a day. Do you think I should go out of business over it? Or all my QT movies? Or, deprive myself of Flash, so I can't view the content of websites?
    So, lets say you browse www.thissiteisinfected.com and have everything uninstalled (see above), and your smart enough to browse the web using a "STANDARD" user account and not the "ADMIN" user account.
    Running from a standard user buys you nothing and adds additional steps. If you want to download an app, before you install, you will get a dialog warn you "XXXX is an application you downloaded from the internet..." So, you still have to authenticate. And what about *all the apps that need no authentication to install?*
    You tell me how this website will inject crap into your MAC with the settings above???
    There is no way to FORCE CODE into your browser if everything is disabled.
    Tell me how it can "inject crap" into my "Mac" admin without my complicity.
    I have bumped into a rouge antivirus website while on my macbook using safari.
    All of a sudden a popup stated i had spyware, i could'nt close the box/window, I had to do a FORCE QUIT on SAFARI to get out of that page. It pretty much hijacked SAFARI.
    This is nothing that can harm you. It is annoying having to force quit over it, but that is all.
    My safari download settings place things on my desktop, sure enuff, there was a .EXE file sitting on my macbooks desktop.
    Sure enough, your Mac can't do a thing with it.
    NOTHING IS BULLETPROOF.
    I agree but there are simpler ways to plant a rootkit you overlook, that have nothing to do admin accounts or ports. *The question is, who would want to?* Even if a black hat is randomly hunting for bank account numbers, social security numbers, credit card numbers, etc. he would pass up a UNIX based system with good protections in place for an easier target.
    In short, in a home environment, I could never recommend running from a standard user. Especially if they are on a router and/or using OS X firewall. (The exception being if you have kids and want to use parental controls.) I have no idea how this mantra about using a non-admin account started, there is no place where Apple recommends this.
    -mj

  • Simple Query Question - How do I return the Last 3 records of a Table?

    Question.
    For example, I have a table that has 50 records.
    How do I, specify in SQL to only return the last 3 records of the table.
    Select a.* from table a where ????

    I was just trying to show an example to a friend on
    how something like this would work and if it was even possible. But it won't work. Here's a simple example:
    SQL> create table emp
      2  (id)
      3  as
      4  select object_id
      5  from   all_objects
      6  order  by object_id;
    Table created.
    SQL> select *
      2  from  (select rownum rn
      3               ,b.*
      4         from   emp b)
      5  where  rn > ( select (max(rownum) - 3)
      6                from    emp)
      7  ;
            RN         ID
         40830      55891
         40831      55892
         40832      55893So far, so good. These are the "last 3" rows inserted. Now delete a bunch of rows and insert 3 new ones:
    SQL> delete emp where id < 40000;
    33423 rows deleted.
    SQL> commit;
    Commit complete.
    SQL> insert into emp values (60000);
    1 row created.
    SQL> insert into emp values (60001);
    1 row created.
    SQL> insert into emp values (60002);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select *
      2  from  (select rownum rn
      3               ,b.*
      4         from   emp b)
      5  where  rn > ( select (max(rownum) - 3)
      6                from    emp)
      7  ;
            RN         ID
          7410      55891
          7411      55892
          7412      55893Here's the problem. Even though the "last 3 rows" are 60000 - 60002, I still get the same ones as the first query.

  • Simple Mail question (couldn't find Mail forum)

    Sorry to ask this on iCal forum, but I saw no forums dedicated specifically for regular Mail.
    This is a simple question as I am a new Mac owner: I am used to using gmail for my email, and like this primarily because, given that it is a web based email application, I can access my email from any computer, anywhere, anytime.
    Given my new Mac, I am interested in switching to the Mail application and was wondering if there is any way to check my email when I am away from my home computer? I think this would work with a mobileme account, but I have not obtained one as of yet.
    Any information would be greatly appreciated! Thanks...

    Thanks Kosmoe...
    One other question...if I do indeed create a new email account and use the Mail application for it, will I be able to check messages via the internet from any computer or only from my own?
    And, if I want to be able to check from any computer, then it seems like getting a mobile me account would solve the problem, right? I am assuming mobile me email can be accessed from anywhere?
    Sorry to be such a Mac newbie! But so far loving the whole Mac experience!

  • XML Namespace Question

    Hi folks,
    I'm new to XML, and have been trying to validate an XML document against a schema using an online validator.
    I have given ultra-simple examples of my schema and document below:
    Schema
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com"
    xmlns="http://www.example.com">
         <xs:element name="letter">
                   <xs:complexType>
                        <xs:sequence>
                             <xs:element name="to" type="xs:string"/>
                             <xs:element name="from" type="xs:string"/>
                        </xs:sequence>
                   </xs:complexType>
         </xs:element>
    </xs:schema>
    Document
    <?xml version='1.0' ?>
    <letter xmlns="http://www.example.com">
              <to>You</to>
              <from>Me</from>
    </letter>When I try to validate the document against this schema I get the following errors:
    Validation error:
    Error at (3,4): The element 'http://www.example.com:letter' has invalid child element 'http://www.example.com:to'. Expected 'to'.
    Error at (3,4): The 'http://www.example.com:to' element is not declared. An error occurred at , (3, 4).<to>You</to>
    Error at (4,4): The 'http://www.example.com:from' element is not declared. An error occurred at , (4, 4).<from>Me</from> </letter>
    I must be doing something wrong when declaring namespaces, but I can't see what. Can anyone point me in the right direction, please?
    Thanks,
    s.

    This is what I have for your code:
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.NamedNodeMap;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    public class JAXPValidator
         public void validateXML(String XmlDocumentUrl) throws Exception
              System.setProperty( "javax.xml.parsers.DocumentBuilderFactory",
                                       "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setNamespaceAware(true);
              factory.setValidating(true);
              factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                                        "http://www.w3.org/2001/XMLSchema");
              DocumentBuilder builder = factory.newDocumentBuilder();
              Validator handler = new Validator();
              builder.setErrorHandler(handler);
              Document doc = builder.parse(XmlDocumentUrl);
              if( handler.hasValidationError() )
                   throw( handler.getParseException() );
    // these simple loops assume that the xml has already been validated!
              NodeList letters = doc.getElementsByTagName( "letter" );
              for( int i = 0; i < letters.getLength(); i++ )
                   NodeList letterChildren = letters.item( i ).getChildNodes();
                   for( int j = 0; j < letterChildren.getLength(); j++ )
                        Node nextNode = letterChildren.item(j);
                        if( nextNode.getNodeType() == Node.ELEMENT_NODE )
                             Node nextNodeValue = nextNode.getFirstChild();
                             System.out.println( "nextNode.getLocalName() is " + nextNode.getLocalName() );
                             System.out.println( "nextNodeValue.getNodeValue() is " + nextNodeValue.getNodeValue() );
         private class Validator extends DefaultHandler
              private boolean validationError = false;
              private SAXParseException saxParseException = null;
              public boolean hasValidationError()
                   return( validationError );
              public Exception getParseException()
                   return( saxParseException );
              public void error(SAXParseException exception) throws SAXException
                   validationError = true;
                   saxParseException = exception;
              public void fatalError(SAXParseException exception) throws SAXException
                   validationError = true;
                   saxParseException = exception;
              public void warning(SAXParseException exception) throws SAXException
                   validationError = true;
                   saxParseException = exception;
         public static void main(String[] argv)
              JAXPValidator validator = new JAXPValidator();
              try
                   validator.validateXML(argv[0]);
              catch( Exception e )
                   e.printStackTrace( System.err );
    }This was compiled with:
    javac -classpath .;..\xerces-2_7_0\xercesImpl.jar;..\xerces-2_7_0\xml-apis.jar JAXPValidator.javaand run with
    java -classpath .;..\xerces-2_7_0\xercesImpl.jar;..\xerces-2_7_0\xml-apis.jar JAXPValidator sunforum.xmlIt assumes that the XML and XSD that I posted before are in the same directory as the program is being run from.

Maybe you are looking for

  • Photo Stream not working anymore

    I had PhotoStream working on my iMac, iPad and iPhone. It has stopped working. All boxes to turn it on are checked 'yes'. When I try to share to Photo Stream, nothing happens but it says 'photos uplodaing'. In my iCloud account there is no Photo Stre

  • How to invoke action class with in a function in jsp in struts

    ex if(condion) we have to use tag window.location="example.do"; thank u sreevatsa adiraju

  • Queries - FI Document FI/Fiscal Data

    Hi, I've created an infoset (SQ02) which connects the table BSEG to BSET with two additional fields: ZHWBAS with the following code: SELECT FROM HWBAS BSET INTO ZHWBAS   WHERE BUKRS = BSEG-BUKRS     AND BELNR = BSEG-BELNR     AND GJAHR = BSEG-GJAHR.

  • Patch apply on Windows platforms which bundle one-off patches sets.

    Dear All, I need help from urgent basis, If you have document for patch apply on Windows platforms which bundle one-off patches sets. For example 10.2.0.3 to Oracle Client patch (7117709) 10.2.0.4 . Thanks for all

  • Unsigned int - problem translating c++ function to java

    OK so here's the deal: I'm writing a client for a internet comunicator in java (J2ME to be precise). Unfortunately i have specs for this comunicator's protocol for c++ programing. The first problem I ran to is: I have to calculate a hash for a passwo