Thanks BJ,
    my simple-method.xsd file is in dtd folder and regarding mentioning in
the classpath can u give me example code how to mention it.My
ofbiz-component.xml of minilang is like

<ofbiz-component name="minilang"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
       
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/ofbiz-component.xsd";>
    <resource-loader name="main" type="component"/>
    <classpath type="dir" location="config"/>
    <classpath type="dir" location="dtd"/>
    <classpath type="jar" location="build/lib/*"/>
</ofbiz-component>

can you tell me where i have to change in the above code and with what ,

BJ Freeman wrote:
> 
> ofbiz will automatically look for local xsd file even though the URL is
> the internet.
> it is why ofbiz can run when not connected to the internet.
> so if you put the xsd in the dtd folder of your application and put in
> the class patn like I suggested, it will work.
> 
> nachi19 sent the following on 6/26/2009 3:52 AM:
>> hi BJ,
>>     thanks for the reply but i didn't got what you said, what to put in
>> the
>> dtd folder, my dtd folder of minilang consists of the two files
>> simple-method.xsd and minilang-catalog.xml and i am using this path in
>> the
>> orderreturnservices.xml which is in different path.
>> 
>>    And in ofbiz-component.xml of content what path i have to give to
>> refer
>> to the xsd files,can you give me simple code refering the xsd file in
>> classpath of the ofbiz-component.xml
>> 
>> BJ Freeman wrote:
>>> put it in dtd folder of the application
>>> look at the ofbiz-component.xml in content to see how to add a class
>>> path to dtd folder, in your ofbiz-component.xml
>>>
>>>
>>> nachi19 sent the following on 6/26/2009 3:29 AM:
>>>> Hi
>>>>     i want to refer to the xsd files which are locally available in the
>>>> application instead of referring to the web, after searching in the
>>>> google i
>>>> tried to use the "<simple-methods
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>         xsi:noNamespaceSchemaLocation="file:///d:/demo
>>>> epos/framework/minilang/dtd/simple-methods.xsd">" but got
>>>> "org.ofbiz.service.GenericServiceException:
>>>> org.ofbiz.minilang.SimpleServiceEngine
>>>> (org.ofbiz.minilang.SimpleServiceEngine)" exception i searched in the
>>>> net
>>>> got some documents but could not able to understand how to accomplish
>>>> it,
>>>> can any one tell me how to refer to the local xsd files with a simple
>>>> code.
>>> -- 
>>> BJ Freeman
>>> http://www.businessesnetwork.com/automation
>>> http://bjfreeman.elance.com
>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>> Systems Integrator.
>>>
>>>
>>>
>> 
> 
> -- 
> BJ Freeman
> http://www.businessesnetwork.com/automation
> http://bjfreeman.elance.com
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> Systems Integrator.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-refer-to-the-xsd-files-locally-tp24218051p24218672.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to