To generate xml code in encoding as specified in system profile options
Hi,
i have a customer bug wherein the report page which is generated after a particular process, which is a .xml file, does not open because we have special characters which are not getting encoded properly!..
the probable solution to this would be to encode the .xml file in the encoding format specified in system profile options.
After the content generation the following code is used to generate the tags and the .xml page:
DBMS_XMLGEN.setRowSetTag(l_qryCtx,'INVOICE_SET');
DBMS_XMLGEN.setRowTag(l_qryCtx, 'INVOICE_RECORD');
DBMS_XMLGEN.setBindValue(l_qryCtx,'BATCH_ID', p_batch_id);
DBMS_XMLGEN.setBindValue(l_qryCtx,'SUPPLIER_ID', rec.supplier_id);
DBMS_XMLGEN.setBindValue(l_qryCtx,'SITE_ID', rec.site_id);
l_result_clob :=DBMS_XMLGEN.GETXML(l_qryCtx);
l_result_clob := substr(l_result_clob,instr(l_result_clob,'>')+1);
l_temp_invoice_count := DBMS_XMLGEN.getNumRowsProcessed(l_qryCtx);
l_invoice_count := l_invoice_count + l_temp_invoice_count;
DBMS_XMLGEN.closeContext(l_qryCtx);
clob_to_file(l_result_clob);
here we have a transaction type in portugese like Nota de Crédito
and the issue summary is as follows
It contains some foreign language symbols which are not encoded in UTF-8 format hence IE is showing the error. Even though in mozilla the file is completely opened but the same foreign language symbol is not shown. So the error exists in all the browsers.
can you please suggest how the encoding maybe done so as to avoid the above problem!...
and also how to include the encoding as per mentioned in the system profile options.
Hi,
>>>The XSD doesn't have any messages only simple and complex types - I can't seem to relate (via drag and drop) them to a data or message type to generate the required objects.
maybe it has some reference inside to some other types which you did not get?
if so you need to import into IR/ESR all files and put the correct reference (external archives)
this would be the proper way to get the file generated according to the xml schema
Regards,
Michal Krawczyk
Similar Messages
-
Differences in nodes of XML code-system generated!
Hello
Below is the system generated XML code,
<xsd:import namespace="http://www.tfb.org/schema/xfa-data/1.0/" />
- <xsd:element name="ADDRESS" version="2" fromWDContext="true">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="KUNNR" type="ZADDRESS-KUNNR" />
- <xsd:element name="NAME1" type="ZADDRESS-NAME1">
- <xsd:annotation>
<xsd:documentation>Name 1</xsd:documentation>
</xsd:annotation>
</xsd:element>
- <xsd:element name="NAME2" type="ZADDRESS-NAME2">
- <xsd:annotation>
<xsd:documentation>Name 2</xsd:documentation>
</xsd:annotation>
Pls. let me know why KUNNR is different from NAME1 and NAME2, because there is no ANNOTATATION and ELEMENT prefix/suffix for KUNNR where as others do have? I do not have knowledge in XML
Thank you.Looks like for web dynpro only description maintained in context for Name1 and name2.
Just check your WD context. -
Generate XML with SAX (OutputFormat/XMLSerializer deprecated)
Hi,
I'm working on a project using an old code, written by don't-know-who, which generates XML code from data obtained at the moment, at run-time, and then returns it as a String.
Recently, my project included a new version (2.9) of the xercesImpl.jar library, and now classes OutputFormat and XMLSerializer have become deprecated.
I'd like to update the old code. Do you know how to modify my code in order to do exactly the same things with a "new" approach which is not deprecated?
I tried to search in the net and I found this FAQ <http://xerces.apache.org/xerces2-j/faq-general.html#faq-6>, but I didn't understand at all how to convert my code. :(
Here's a "semplified" version of my method:
public String generateDocument() {
OutputFormat of = new OutputFormat("XML", "UTF-8", true);
of.setIndent(1);
of.setIndenting(true);
StringWriter sw = new StringWriter();
XMLSerializer xs = new XMLSerializer(sw, of);
try {
ContentHandler hd = xs.asContentHandler();
hd.startDocument();
AttributesImpl atts = new AttributesImpl();
atts.addAttribute("", "", "id", "CDATA", "1");
hd.startElement("", "", "addressBook", atts);
atts.clear();
hd.startElement("", "", "name", atts);
String s = "John";
hd.characters(s.toCharArray(), 0, s.length());
hd.endElement("", "", "name");
hd.startElement("", "", "surname", atts);
s = "Smith";
hd.characters(s.toCharArray(), 0, s.length());
hd.endElement("", "", "surname");
hd.endElement("", "", "addressBook");
hd.endDocument();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
return sw.toString();
}This code returns a String with this content:
<addressBook id="1">
<name>John</name>
<surname>Smith</surname>
</addressBook>Thanks a lot.This is easy. You have to somewhen learn the basics of the Java XML APIs, e.g. the DOM API. Or fight like a man through
http://java.sun.com/webservices/reference/tutorials/jaxp/html/dom.html
http://java.sun.com/webservices/reference/tutorials/jaxp/html/intro.html
http://java.sun.com/webservices/docs/1.6/tutorial/doc/index.html. -
8.1.1.5 Generate XML XSD Schema
Hi, I'm developing for 8.1.1.5 for generate XML XSD schema and found out there's an option when generating XSD schema in tools wizard to include the length information.
There's a vanilla BS in 8.0 that i used (EAI XML XSD Generator) to do the same thing as generate schema through tools wizards but now in 8.1.15 i couldn't get the length using the same vanilla BS. Does anyone know how to generate XSD with length information using vanilla BS?Please close this thread...it appears that the error occurs when the report involves a big set of records. I tried trying to filter only one record and was able to produce the pdf
-
Generated XML doc file contains comments from MFC source code
Hello, in my project I use the option /doc to generate XML doc file from my source codes but unfortunately in the output XML file there are mixed also comments from original MFC source codes, see the part of generated xml file:
Is there a solution to ignore these MFC cpp files?
Many thanks
Regards
Petr Stejskal
<?xml version="1.0"?>
<style xmlns="http://www.w3.org/1999/xhtml">@namespace html url(http://www.w3.org/1999/xhtml); :root { font:small Verdana; font-weight: bold; padding: 2em; padding- } * { display: block; padding- } html|style { display: none; } html|span, html|a
{ display: inline; padding: 0; font-weight: normal; text-decoration: none; } html|span.block { display: block; } *[html|hidden], span.block[html|hidden] { display: none; } .expand { display: block; } .expand:before { content: '+'; color: red; } .collapse
{ display: block; } .collapse:before { content: '-'; color: red; } </style><doc><assembly><assembly>
"Console" </assembly></assembly><members><members><member name="T:_RS"><member
name="T:_RS">Reed-Solomon codec control block</member></member><member name="M:MMask_makeMask(System.Int32,System.Byte*,System.Int32,QRecLevel)"><member
name="M:MMask_makeMask(System.Int32,System.Byte*,System.Int32,QRecLevel)">Mode indicator. See Table 2 in Appendix 1 of JIS X0510:2004, pp.107.</member></member><member
name="M:CMFCControlRenderer.IsScaled"><member
name="M:CMFCControlRenderer.IsScaled"><summary><summary>Tells whether this control
renderer works with scaled (resized) images.</summary></summary><returns><returns>Returns TRUE if this control
renderer works with resized (scaled) images.</returns></returns></member></member><member name="M:CMFCControlRenderer.SmoothResize(System.Double)"><member
name="M:CMFCControlRenderer.SmoothResize(System.Double)"><summary><summary>
Smoothly resizes images.</summary></summary><param name="dblScale" /><param
name="dblScale"> Scale ratio.</param><returns><returns>
TRUE if resize succeeds; otherwise FALSE.</returns></returns></member></member><member name="M:CDrawingManager.CreateBitmap_32(HBITMAP__*,System.UInt32!System.Runtime.CompilerServices.IsLong)"><member
name="M:CDrawingManager.CreateBitmap_32(HBITMAP__*,System.UInt32!System.Runtime.CompilerServices.IsLong)"><summary><summary>
Creates a 32 bit bitmap from the specified bitmap.</summary></summary><returns><returns> A handle to created
bitmap, or NULL, if creation fails.</returns></returns><param name="bitmap" /><param
name="bitmap"> A handle to the original bitmap.</param><param name="clrTransparent"
/><param
name="clrTransparent"> An RGB value specifying transparent color of the original bitmap.</param></member></member><member
name="M:CDrawingManager.CreateBitmap_32(CSize!System.Runtime.CompilerServices.IsConst*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Void**)"><member
name="M:CDrawingManager.CreateBitmap_32(CSize!System.Runtime.CompilerServices.IsConst*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Void**)"><summary><summary>
Creates an empty 32 bit bitmap.</summary></summary><returns><returns> A handle to created bitmap, or NULL,
if creation fails.</returns></returns><param name="size" /><param
name="size">Specifies bitmap size.</param><param name="pBits" /><param
name="pBits">When the function returns contains a pointer to bitmap bits.</param></member></member><member
name="M:CDrawingManager.DrawRotated(CRect,CDC*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Int32)"><member
name="M:CDrawingManager.DrawRotated(CRect,CDC*!System.Runtime.CompilerServices.IsImplicitlyDereferenced,System.Int32)"><summary><summary>Rotates
a source DC content inside the given rectangle by +/- 90 degrees</summary></summary><param name="rectDest" /><param
name="rectDest">Destination rectangle</param><param name="dcSrc" /><param
name="dcSrc">The source device content.</param><param name="bClockWise"
/><param
name="bClockWise">TRUE - rotate +90 degrees, FALSE - 90.</param></member></member><member
name="M:AfxRegDeleteKey(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,ATL.CAtlTransactionManager*)"><member
name="M:AfxRegDeleteKey(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,ATL.CAtlTransactionManager*)"><summary><summary>Deletes
the specified registry key.</summary></summary><returns><returns> If the function succeeds, the return
value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in Winerror.h</returns></returns><param name="hKey" /><param
name="hKey">A handle to an open registry key.</param><param name="lpSubKey"
/><param
name="lpSubKey">The name of the key to be deleted.</param><param name="pTM" /><param
name="pTM">Pointer to CAtlTransactionManager object</param></member></member><member
name="M:AfxRegOpenKeyEx(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,System.UInt32!System.Runtime.CompilerServices.IsLong,System.UInt32!System.Runtime.CompilerServices.IsLong,HKEY__**,ATL.CAtlTransactionManager*)"><member
name="M:AfxRegOpenKeyEx(HKEY__*,System.Char!System.Runtime.CompilerServices.IsConst*,System.UInt32!System.Runtime.CompilerServices.IsLong,System.UInt32!System.Runtime.CompilerServices.IsLong,HKEY__**,ATL.CAtlTransactionManager*)"><summary><summary>Opens
the specified registry key.</summary></summary><returns><returns> If the function succeeds, the return
value is ERROR_SUCCESS. If the function fails, the return value is a nonzero error code defined in Winerror.h</returns></returns><param name="hKey" /><param
name="hKey">A handle to an open registry key.</param><param name="lpSubKey"
/><param
name="lpSubKey">The name of a key that this function opens or creates.</param><param name="ulOptions"
/><param
name="ulOptions">This parameter is reserved and must be zero.</param><param name="samDesired" /><param
name="samDesired">A mask that specifies the desired access rights to the key.</param><param
name="phkResult" /><param
name="phkResult">A pointer to a variable that receives a handle to the openedkey.</param><param
name="pTM" /><param
name="pTM">Pointer to CAtlTransactionManager object</param></member></member></members>Hi stejsky,
Thank you for posting in MSDN forum.
>>In my project I use the option /doc to generate XML doc file from my source codes but unfortunately in the output XML file there are mixed also comments from original MFC source codes.
Based on your issue, could you please tell me how you use the option /doc to generate XML doc file from your source codes?
If you use the option /doc to generate the XML doc file by right-click the your MFC project->Properties->Configuration Properties->C/C++->Output file->set the Generate XML document files as Yes(/doc) like the following screen shot.
(1)If yes, since we could not reproduce your issue in mu side, so if possible, I suggest you could share me your MFC project so that we will further help you support this issue.
You could upload your MFC project to the OneDrive and then copy link here.
(2)If no, please try the above way to generate XML doc file and then check if you still get same issue.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Adding " ?xml version="1.0" encoding="UTF-8"? " in generated xmls
Hi,
I am using xmlbeans framework to generate xmls , i am able to generate xml using document object but header "<?xml version="1.0" encoding="UTF-8"?>" is not coming in that xml file , how to include this in output xml files.Hi,
I don't know the XMLBeans Framework, but this header is called XML declaration.
In general there are options to configure this (i. e. setOption("omit-xml-declaration", false);).
Anyway, I don't know the exact syntax in this framework but have a look at this, maybe it helps somehow.
http://xmlbeans.apache.org/docs/2.0.0/reference/org/apache/xmlbeans/XmlOptions.html#setSaveNoXmlDecl()
Best Wishes
esprimo -
Hi I need this asap... "Java code to generate XML File from XML Schema"
Hi all....
I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
Thankz in advance...
PS: I already posted in the afternoon... this is the second posting.take look at :
http://sourceforge.net/projects/jaxme/
this might help... -
Java code to generate XML File from XML Schema
Hi I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
Thankz in advance...JAXB has been available as an early release download for some time. There are also XML Binding packages available from Borland (JBuilder) and Castor. These tools create Java classes from a source document, xml,dtd etc. You can use these classes to marshal-unmarshal XML documents.
Dave -
Ampersand character encoding in generated xml
Hi,
I'm generating xml from my relational database tables using XSU. I'm having a problem where my table column contains data with the ampersand symbol as in 'Black & White'. XSU generates my xml but i can't parse the generated xml till i convert the '&' to '&'.
Is there a way to tell XSU to encode these symbols in the generated xml? I would like to avoid storing the encoded data in my relational tables like 'Black & White'.
I'm using the XDK for PL/SQL for Unix 9.2.0.3.0 on Oracle 8.1.7.3.
I would appreciate if someone could help me out with this issue.
Thanks,
Sanjit
[email protected]I've got the same problem but not only with the & but also with strange characters like
Belgik -> k
Comiti -> i
Its something like {( returns..
Is this a bug or something?
Thanks in advance, Didier -
Generate XML report then display like HTML with specified formate
Hello,friends
I want to generate XML report then use XSL to parse it,report will display like HTML with specified formate like attachment,any ideas?
Thank you
AlbHi Ray,
I don't why I can not upload any format picture,so I listed the display as below:
Test Result Company Logo
SN 1111 User Operator
Status Fail Factory SE
Product xxx Tester xxx
Start time xxx Line xxx
Test time xxx
NAME STATUS VALUE LOW HIGH RULE
1.0 Pass/Fail Test Passed True True EQ
2.0 Less than Test Failed 15 10 LT
3.0 String Value Test Passed A string from the limit file A string
End of Report
Could you give me some suggestions?
Thanks a lot
Alb -
How to generate GUI code from parsed XML file?
hai,
I have to generate GUI code after parsing any configuration XML file as input.Now i have parsed my XML file and got its attributed and i want to get some idea of how to map the parsed XML attributes to the java code to build GUI code.Hello,
1. I like to create data type from a XML file structure, which contains the data structure ?
XML fields will need to be taken note of to see which is repeating or not. You can also load the XML into a third-party tool such as Altova XML Spy and then generate an XSD from there. You will need to import the XSDs into PI under external definitions. However, this does not guarantee business interoperability, as such, it is always best to ask the provider for the XSDs or WSDL. It will also save you a lot of time from guessing which fields are needed or not.
2. How to create custom node function in graphical mapping editor ?
In your graphical mapping editor, on the lowest left corner, there is an icon there that says Create New Function. You must take into account their return types:
1. Single Values = String
2. Queue/Context (no return type) thus resultList is used.
Hope this helps,
Mark -
Validating XML files and generating error codes
I want to validate an XML file with a schema & also get hold of the fields/attributes/tags
that caused an error and generate error codes based on that. Any suggestion on
how this can be done. DOM, SAX allow to do validation but how do I know exactly
know which tags caused errors. We have to track the errors codes."SP" <[email protected]> wrote:
Use the HandlerBase class for getting hold of the tags and its attributes.
The methods in this class take the tags and attributes and throw the
SAXException. You can use these methods to find out which tag is throwing
an
exception.
Hope this helps
SP
I am using the DOMParser.parse method with the xerces parser. I have an error
handler registered to get hold of the errros. What happens is the parsing stops
at the first instance of an error. I want to continue parsing to get hold of all
errors. How can I achieve that?
>
"leena" <[email protected]> wrote in message
news:[email protected]..
I want to validate an XML file with a schema & also get hold of thefields/attributes/tags
that caused an error and generate error codes based on that. Anysuggestion on
how this can be done. DOM, SAX allow to do validation but how do Iknow
exactly
know which tags caused errors. We have to track the errors codes. -
Generate XML - Special Character in data causing error
Hello,
I have a procedure written using DBMS_XMLGEN to create xml output. A problem that I am running into is some of my data has an eacute in it. How can I code the XML to account for this and any other weird characters that may exist?
(ie - i need to be able to specify the encoding part of ?xml version=1.0 encoding=ISO-8859-1?)
Here is an excerpt of what i have so far...the results are fine until I run to include the data with the eacute. Then nothing is generated at all. I tried .convert, but I don't know if that's what I need, or if I am calling it correctly.
Thanks!
Janel
ctx := dbms_xmlgen.newContext(rc_data);
-- set name of root element --
dbms_xmlgen.setRowsetTag(ctx, 'XXFA10022');
-- set name of element separating all rows --
-- default is ROW --
dbms_xmlgen.setRowTag(ctx, 'G_DATA');
-- generate XML document --
xml := dbms_xmlgen.getXml(Ctx);
xml := dbms_xmlgen.convert(xml, dbms_xmlgen.ENTITY_ENCODE);
i := dbms_xmlgen.getNumRowsProcessed(ctx);
dbms_xmlgen.closeContext(Ctx);
apps.fnd_file.put_line(apps.fnd_file.log, 'rows processed -' || i);
apps.fnd_file.put_line(apps.fnd_file.log, 'close');
apps.fnd_file.put_line(apps.fnd_file.log, xml);
apps.fnd_file.put_line(apps.fnd_file.output, xml);
-- free clob content --
dbms_lob.freetemporary(xml);No. There are no XML components that will clean up malformed XML. Your options are to go to whoever sent you that document and tell them that their XML is malformed and that in future they should not do that, or to write your own component to clean up the malformed XML. Since that would involve more work than writing a full XML parser, I don't recommend the second option.
-
Generating XMLs from CSVs using DOM parser......
Hi,
I am trying to generate XMLs from CSV files using DOM parser. XMLs are getting generated but the problem is that i am using Encoding "ISO-8859-1" but XMLs are getting generated in UTF-8 encoding.
Please refer to the code below and advice. (where are the code tags gone ????? )
Source domSource = new DOMSource(document);
ByteArrayOutputStream xmlStream = new ByteArrayOutputStream();
Result result = new StreamResult(xmlStream);
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.transform(domSource, result);
xmlStream.close();
generatedXml = new String(xmlStream.toByteArray(), "*ISO-8859-1*");Use transformer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1") to specify the character set.
-
How do I display on-the-fly generated XML on a web page using DW CS4 Spry regions?
On a main web page I'm trying to display formatted data from an ASP page that generates XML on-the-fly from a query.
When I run the ASP page from the browser, the XML formatting of the data works. But when I run the main web page, the data doesn't display.
I'm using DW CS4 Spry regionsto display the data on the main page from the XML data generated by the ASP page. Here's the main page code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" >
<html>
<head>
<script type="text/javascript" src="SpryAssets/xpath.js"></script>
<script type="text/javascript" src="SpryAssets/SpryData.js"></script>
<script type="text/javascript" src="SpryAssets/SpryUtils.js"> </script>
<script type="text/javascript">var A1D1xml = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.asp", "tests/test");</script>
<title>Test XML Main</title>
</head>
<body>
<div id="A1D1xml" spry:region="A1D1xml">
<table id="A1D1">
<tr>
<th>ID</th>
<th>Last Name</th>
<th>Final Status</th>
</tr>
<tr spry:repeat="A1D1xml">
<td>{acr_id}</td>
<td>{acr_lastName}</td>
<td>{acr_final_status}</td>
</tr>
</table>
</div>
</body>
</html>
Here's the code for the page that generates the XML: A1D1ACRs_testWxmlCode.asp
<html>
<%
set objConn=server.CreateObject("ADODB.Connection")
objConn.Open application("web_test")
set rs = objConn.Execute( "SELECT acr_id, acr_lastName, acr_final_status from acr_records_grid_view where acr_changeOption = 'A1D1'")
Response.ContentType = "text/xml"
Response.AddHeader "Pragma", "public"
Response.AddHeader "Cache-control", "private"
Response.AddHeader "Expires", "-1"
%>
<?xml version="1.0" encoding="utf-8"?>
<tests>
<%While (NOT rs.EOF)%>
<test>
<ID><%=(rs.Fields.Item("acr_id").Value)%></ID>
<acr_lastName><![CDATA[<%=(rs.Fields.Item("acr_lastName").Value)%>]]></acr_lastName>
<acr_final_status><![CDATA[<%=(rs.Fields.Item("acr_final_status").Value)%>]]></acr_final_s tatus>
</test>
<%
rs.MoveNext()
Wend
%>
</tests>
<%
rs.Close()
Set rs = Nothing
%>
</html>
Thanks.Thanks, but no; I'm using the correct case and folder.
With this code on the main page, The region flashes the table column header names
and the code as written for the spry repeat; then instantly disappears from the screen.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="SpryAssets/xpath.js"></script>
<script type="text/javascript" src="SpryAssets/SpryData.js"></script
<script type="text/javascript">var A1D1x = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.xml", "tests/test");</script>
<title>Test XML Main</title>
</head>
<body>
<div id="A1D1" spry:region="A1D1x">
<table id="A1D1a">
<tr>
<th>ID</th>
<th>Last Name</th>
<th>Final Status</th>
</tr>
<tr spry:repeat="A1D1x">
<td>{acr_id}</td>
<td>{acr_lastName}</td>
<td>{acr_final_status}</td>
</tr>
</table>
</div>
</body>
</html>
Maybe you are looking for
-
My mac won't download photos from my iPhone to iPhoto.
It stopped a couple months ago. When iPhoto starts up it says "The iPhoto Library is locked, on a locked disk, or you do not have permission to make changes to it." I hit the "repair" button, which lets me use iphoto, but then when I connect my iphon
-
Is there a way to transfer iTunes Store purchases or an iTunes library from one user to another? Historically, I have my own laptop and my 8 year old daughter has a laptop as well. I also have an iPad and iPhone. In the past, I have managed all dev
-
I want to buy an iPhone 6 to be used in Spain and in Usa without problems. Which is the Best? unlocked? or I need more specifications
-
Hi, I'm trying to install AIA 11.1.1.5 (on WLS and SOA 11.1.1.5) as is described in manual coresponding to this Product, but I'm getting following error: Deploy Application Deployments Error Failed to Deploy Application Step Deploy Application Deploy
-
I just bought and downloaded Foldify. It doesn't open. What do I do?
I have bought and downloaded Foldify from iTunes, but it doesn't open. What can I do to activate it?