[svn:osmf:] 10134: Improvements to the VAST document object model.
Revision: 10134
Author: [email protected]
Date: 2009-09-10 15:08:05 -0700 (Thu, 10 Sep 2009)
Log Message:
Improvements to the VAST document object model.
Modified Paths:
osmf/branches/briggs-prototype/libs/VAST/.flexLibProperties
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/loader/VASTLoadedContex t.as
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/loader/VASTLoader.as
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/VASTMediaGenerato r.as
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTAd.as
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTAdInline.as
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTVideoClick.as
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/parser/VASTParser.as
osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/dom/MASTDocume ntProcessor.as
osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/media/MASTLoad er.as
Hello,
This issue is currently being addressed and will be solved very soon. Once the OMSF team has a chance to review the patch they will place it in the OSMF repository. This was a known issue but not addressed because VAST 1 is deprecated by the IAB and we spent our efforts working on the VAST 2 implementation. However, I understand that a few publishers will need VAST 1 clickthrus because advertisers are still moving away from that standard and clickthurs is an important part of the standard. I will update you when the fix is ready on the repository.
Regards,
Craig
Eyewonder
Similar Messages
-
Documentation for the Acrobat Document Object Model
Hello
I'm trying to move my first steps in this field, I hope you can bear with my naive questions.
I'm trying to find the documentation for the Acrobat Document Object Model. To my surprise a search in the forum's archives was unsuccessful.
I remember downloading out of curiosity a few PDFs from Adobe about their implementation of JavaScript in Acrobat, one precisely concerning ADOM (but I could be wrong as it was a few years ago and I'm getting old): are those documents a thing of the past?
Thank you very much.
GiordanoHave a look here:
http://www.adobe.com/devnet/acrobat/javascript.html
The link there is for the version 9 reference, which is usually good enough,
but if you want the latest one (in PDF form), you can find it inside the
Acrobat X SDK package, here:
http://www.adobe.com/devnet/acrobat/sdk/eula.html -
Revision: 17399
Revision: 17399
Author: [email protected]
Date: 2010-08-19 17:53:31 -0700 (Thu, 19 Aug 2010)
Log Message:
Improvements to the FMS stream reconnect feature.
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/net/NetLoader.as
osmf/trunk/framework/OSMF/org/osmf/net/rtmpstreaming/RTMPDynamicStreamingNetLoader.as"Is it intended to cope with NetConnection.Connect.IdleTimeOut of FMS disconnecting clients after some time of inactivity?"
The answer is no. Stream reconnect is all about trying to reconnect in the event of a dropped network connection. For the IdleTimeOut scenario, listen for the MediaErrorEvent.MEDIA_ERROR event on the MediaPlayer and check for an error of MediaErrorCodes.NETCONNECTION_TIMEOUT. You can handle that however you wish in your player.
- charles -
Revision: 12641
Revision: 12641
Author: [email protected]
Date: 2009-12-07 21:10:00 -0800 (Mon, 07 Dec 2009)
Log Message:
Improvements to the DFXP parser, captioning sample, and a bug fix for the TemporalFacet (duration timers were not taking account of the media being paused).
Modified Paths:
osmf/trunk/apps/samples/plugins/CaptioningSample/src/CaptioningSample.css
osmf/trunk/framework/MediaFramework/org/osmf/metadata/TemporalFacet.as
osmf/trunk/plugins/CaptioningPlugin/org/osmf/captioning/parsers/DFXPParser.as -
Hi,
Does anyone know how to create a context menu (right click on line or field) in the new ALV object model (class CL_SALV_TABLE)?
Thanks in advance
Keld Gregersen
PS: In the past we could use event CONTEXT_MENU_REQUEST in class CL_GUI_ALV_GRID, so it must be possibleI don't think there's "any such animal" in the new class. I'm not 100% certain however but the new class is only useful for fairly simple display only type grids.
There's no edit capability either.
I'd stick with cl_gui_alv_grid until there's some decent extra functionality in the cl_salv_table class.
It's fine for quick "bog standard" displays as it doesn't need a field catalog or any screens to be created by the user or developer - but you pay a price for that in limited fnctionality.
Cheers
jimbo -
Revision: 10102
Author: [email protected]
Date: 2009-09-09 13:51:19 -0700 (Wed, 09 Sep 2009)
Log Message:
Second attempt at VAST prototype, this time as an AS3 library rather than a plugin. Update MAST implementation to use the new library.
Modified Paths:
osmf/branches/briggs-prototype/apps/samples/framework/ExamplePlayer/.actionScriptProperti es
osmf/branches/briggs-prototype/apps/samples/framework/ExamplePlayer/.project
osmf/branches/briggs-prototype/apps/samples/framework/FactoryPlayer/.actionScriptProperti es
osmf/branches/briggs-prototype/apps/samples/framework/FactoryPlayer/.project
osmf/branches/briggs-prototype/apps/samples/framework/FactoryPlayer/org/openvideoplayer/v iew/MainWindow.as
osmf/branches/briggs-prototype/plugins/MASTPlugin/.actionScriptProperties
osmf/branches/briggs-prototype/plugins/MASTPlugin/.project
osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/dom/MASTDocume ntProcessor.as
osmf/branches/briggs-prototype/plugins/VASTPlugin/org/openvideoplayer/vast/VASTLoader.as
Added Paths:
osmf/branches/briggs-prototype/libs/VAST/
osmf/branches/briggs-prototype/libs/VAST/.actionScriptProperties
osmf/branches/briggs-prototype/libs/VAST/.flexLibProperties
osmf/branches/briggs-prototype/libs/VAST/.project
osmf/branches/briggs-prototype/libs/VAST/org/
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/TextElement.as
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/VASTLoadedContext .as
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/VASTLoader.as
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/VASTMediaGenerato r.as
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/
osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTDocument.asHi, Nubz!
Yes, I just saw that, and am still chuckling.
Maybe that will mollify the Jive gods?
Thanks again,
Jim -
Revision: 20609
Revision: 20609
Author: [email protected]
Date: 2011-03-04 10:23:41 -0800 (Fri, 04 Mar 2011)
Log Message:
Change the default max object nest level from 1024 to 512. A max object nest level of 512 should be more than enough for most applications which probably will not be sending deeply nested object graphs over the wire. For applications that are sending deeply nested object graphs over the wire and that bump up against this limit, the limit can be increased but you should also do testing to make sure that serializing/deserializing these deeply nested object graphs doesn't cause stack overflow errors.
Update documentation for the max object nest level setting to reflect the new default.
Add documentation for the new max collection nest level setting.
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.java
blazeds/trunk/resources/config/services-config.xmlYou should be able to get some more precise information from your Xorg logs, but I would bet it is related to the evdev driver. Some of the options in your xorg.conf no longer work with the latest version. For now you should be able to either map your mouse directly to the appropriate /dev/event* entry or change to the standard mouse driver, both of those methods should be in the wiki.
You are supposed to be able to use the evdev driver without the input section of your xorg.conf by using dbus/hal autodetection, but AFAIK at the moment the xorg-server package still isn't compiled with hal support, so you would have to patch and rebuild the package. -
[ANN] InDesign CC 2014 Document Object Model Documentation
I've freshly rendered an alternative documentation for Adobe ExtendScript API and the InDesign Object Model.
InDesign ExtendScript API (10.0)
I don't like the representation in the Object Model Viewer provided by the Adobe ExtendScript Toolkit and hence used the HTML Version from Jongware on a daily basis. However these files are only up to InDesign CS6 and not searchable. So I started to convert them on my own. If you feel familiar with the structure and layout from Jongware files, this is not by chance, because I'm totally used to it.
Feel free to browse the documentation, download a copy for offline usage (Unfortunately the offline search function will not work in Chrome). The sources of the Transformation can be found on github. The copyright of the original Files is by Adobe Systems Incorporated.
I'm happy about Feedback and Bug reports. Keep in mind that the doucmentation sources are written by Adobe and I can only corret transformation errors!
Acknowledgements
This project ist based on the fantastic ExtendScript API HTML from [Jongware]. Without his efforts and inspiration I would not have realized it. Thank You!Hello Jongware!
After a couple of changes for ID CC2014 as you'll note below (" -> ', and, Object Styles) to an old couple lines of your code, I got the following to work beautifully to delete all the unused Indesign styles in a document off a hot key. A real time saver!
//DeleteAllUnusedStyles
app.menus.item('Paragraph Style Panel Menu').menuItems.item('Select All Unused').associatedMenuAction.invoke();
app.menus.item('Paragraph Style Panel Menu').menuItems.item('Delete Styles…').associatedMenuAction.invoke();
app.menus.item('Character Style Panel Menu').menuItems.item('Select All Unused').associatedMenuAction.invoke();
app.menus.item('Character Style Panel Menu').menuItems.item('Delete Styles…').associatedMenuAction.invoke();
app.menus.item('Object Styles Panel Menu').menuItems.item('Select All Unused').associatedMenuAction.invoke();
app.menus.item('Object Styles Panel Menu').menuItems.item('Delete Styles…').associatedMenuAction.invoke();
The only thing stopping me from popping it into a loop to do a whole book at once (a trick I got from your excellent show-hide layers script) is that I don't know how to "Check The Box" in the ID UI that opens as it does each panel to make it "Apply To All". I'm sure it's quite simple but I've been through your handy dandy Script classes list, and ExtendScript, 'til I'm blue in the face and can't take it any more.
Can you offer me a hint where to look?
Best Regards,
HP -
Where did the Photoshop CC Object Model info go?
I've been using ExtendScript Toolkit CC with Photoshop CC 2014 without issue for some time now, but yesterday all of the reference information for Photoshop CC 2014, and several other programs, disappeared from the Object Model Viewer. Does anyone know what happened to it? Is there any way to get the information back? I have already tried reinstalling ExtendScript but nothing changed.
I have the same problem. Haven't figured it out yet...
-
Revision: 13309
Revision: 13309
Author: [email protected]
Date: 2010-01-06 11:02:52 -0800 (Wed, 06 Jan 2010)
Log Message:
Bug in the Media Player, and code cleanup.
Modified Paths:
osmf/trunk/apps/samples/framework/MediaPlayer/src/com/adobe/strobe/players/MediaPlayerWra pper.asNothing untoward happening here. The only problem I see once in a while is in the gallery. It tends to take it's time populating the thumbnails once in a while.
What brand MicroSD are you using? -
I have a small snippet of code that I use to update the Modified Date of a list item and it works great for users with Full Control permissions. However, for users with just Contribute access to the site the code doesn't work. Instead, SharePoint
just updates the Modified Date to now.
I did some testing, and narrowed down the specific permission level that allows updating of Modified dates and oddly enough, it's the "Manage Permissions" level.
Has anyone run into this issue? If so, how do I work around this and update the Modified date as a user with only Contribute access to a site/library?
Here's the code:
DateTime Test = new DateTime(2012, 5, 4);
ListItem li = list.GetItemById(itemID);
li["Modified"] = Test;
li.Update();
ct.ExecuteQuery();
Thanks,
MaxHello,
As a workaround you can pass admin credential in your code because as per my knowledge contributor can't update default columns like: created by, modified by, modified, created.
ClientContext clientContext = newClientContext(siteUrl);
ClientContext.Credentials = newNetworkCredential(UserName, Password, Domain);
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to use change document object ?
Friends,
I am learning to use the Change Document object for one of my Z table. I have created a change doc object using SCDO. I have now written a test report in which i am issuing the SELECT statement for fetching old and new values from the Z table and passing them to the FM generated by SCDO.
I am not able to see the changes in the CDHDR and CDPOS tables. I am doubtful abt the values being passed to the FM. Here are the values i am passing:
CALL FUNCTION 'YTEST_WRITE_DOCUMENT'
EXPORTING
objectid = 'YTEST'
tcode = 'se38'
utime = sy-uzeit
udate = sy-datum
username = sy-uname
PLANNED_CHANGE_NUMBER = ' '
OBJECT_CHANGE_INDICATOR = 'U'
PLANNED_OR_REAL_CHANGES = ' '
NO_CHANGE_POINTERS = ' '
UPD_ICDTXT_YTEST = 'U'
n_ztest_cle = wa_ztest_cle
o_o_ztest_cle = o_ztest_cle
UPD_ZTEST_CLE = ' '
tables
icdtxt_ytest = itab_cdtxt.
Is the object ID the same as the Change Document Object name ??
Please help.
Thanks,
Ram.Well, i found a way out for the problem i was facing. I was not setting the "UPD_ZTEST_CLE " FM parameter. When i set it to 'U', the changes got reflected in the CDHDR and CDPOS tables.
Can i reward myself as i solved this by myself ??? -
Problem while generating Update progam for a Change Document Object
Hi,
I'm trying to deal with Change Document concept in a R/3 4.6C environment and to establish new Change Document object for my (Z)-table. I haven't using any namespace and created object with name ZTEST. Following the online documentation I came to the point, where I have to generate include program. I made all the nessesary inputs (using Z prefix) but faced
"Function module name is reserved for SAP"
Creating everything similarily using some of our registered namespaces (/somenamespace/) I succeed to generate the Update program and to integrate it in my Z-programs as well.
My question is: is it possible to use Change Document Object-names without predefined namespace - being a regular customer developer, but not an SAP developer - means, if I am allowed to manage programs in the customer namespace (Z,Y, X) only. If yes, how to do this?
Further (I decided not to open a new thread) - generated Update program uses
CALL FUNCTION 'xxxxx' IN UPDATE TASK
for creation of Change Numbers for generated Change Document Object. This CALL doesn't work when I implemented it in my Z-program, but when changed (IN UPDATE TASK was commented) - everything goes well and the system creates records in CDHDR/CDPOS tables for my object class and table.
Why is that? According to the documentation I shoud only fill appropriate variables for the Change Document Object (class, tr.code, etc.) and call generated FM, nothing is pointed out about any possible problems? Am I doing something wrong?
Well, to be precise, I think I have to give a sample:
1. I have a sample Z-table with few fields (their data elements are marked as Change-Document relevant).
2. Using own z-progam I created a new record for this z-table. Also fill all the nessesary variables included in the interface of generated FM for Change Document Object (for example - FM-mane CD_CALL_my_object).
3. I call the CDO FM.
4. Check what is happening (directly in both tables CDHDR/CDPOS or using FM CHANGEDOCUMENT_READ).
Further, I perfom the steps from 1 to 4 updating the created in previous loop record in my Z-table.
In both cases if the FM 'CD_CALL_my_object' is called IN UPDATE TASK nothing happens, but in case of direct call (without addition IN UPDATE TASK) the system behaves as expected. Well, obliously I can change the generated code for our production needs, but it doesn't seems to be the correct decision - in case of next possible modification of the Change Document Object definition, respectively in need of re-generation of the code.
Any hints are wellcome.
Thanks in advance.
Ivaylo Mutafchiev
Edited by: Ivaylo Mutafchiev on Jan 24, 2008 10:24 AM"IN UPDATE TASK" resolved by myself. The one should explicitly call 'COMMIT WORK' from Z-program after CALL FUNCTION '...' IN UPDATE TASK in order to get changes in the CDHDR/CDPOS commited. The key in this issue for me was to check the documentation of CALL FUNCTION :-).
Regards,
Ivo -
In Reply to : How to validate org.jdom.Document object using xsd: dvohra09
Hi All
I am creating org.jdom.Document object using constructor Document() and adding children using setRootElement(), setChildren() and addContent() methods. The children are objects of org.jdom.Element. If i want to validate the org.jdom.Document using xsd what i have to do. Thanks in anticipation.I tried the below code and it is always giving the
Parsing fatal error : The markup in the document preceding the root element must be well-formed.
But it is possible to validate the same Document object as right document after writing it onto xml file using XMLOutputter and parsing it using DOMParser
Thanks in anticipation
org.jdom.Document document;
String documentString=document.toString();
StringReader stringReader=new
StringReader(documentString);
SAXBuilder saxBuilder =new
SAXBuilder("org.apache.xerces.parsers.SAXParser",true);
saxBuilder.setFeature("http://xml.org/sax/features/vali
ation", true);
saxBuilder.setFeature("http://apache.org/xml/features/v
lidation/schema", true);
saxBuilder.setFeature("http://apache.org/xml/features/v
lidation/schema-full-checking", true);
//Set a error handler with
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
saxBuilder.build(stringReader); -
XML Document object access problem?
Hi,
I have created a servlet,which will call .sh file, which will call java application.........
this java application is working as a search engine,which will do search in the XML document object...........This is working fine when only one user run this servlet...........But when more than servlet do the same it is not working......... But once first servlet create the Document object,which is main source for serching..........then second servlet will work fine.......same thing with third servlet and so on...... I used the thread.sleep()/synchronize but it is not working...bcoz i am accessing the same application.....Then instead of servlet i tried to run the java application from the Dos prompt..........But i am facing the same problem......So pl guide me bcoz everything is working excluding this..........Becoz this document object creation is taking some time........ i am creating the object shown below
Document doc =parseXmlFile("Article.xml", false);
Element docElem = doc.getDocumentElement();
public static org.w3c.dom.Document parseXmlFile(String filename, boolean validating)
try {
// Create a builder factory
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(validating);
// Create the builder and parse the file
// org.w3c.dom.Document doc = factory.newDocumentBuilder().parse(filename);
org.w3c.dom.Document doc = factory.newDocumentBuilder().parse(new File(filename));
return doc;
} catch (SAXException e) {
// A parsing error occurred; the xml input is not valid
} catch (ParserConfigurationException e) {
} catch (IOException e) {
return null;
}Hi,
This is my Servlet code..............
package PW.Feed;
import java.io.*;
import javax.xml.parsers.*;
import org.w3c.dom.*;
import org.xml.sax.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.stream.StreamResult;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;
public class PrintDom extends HttpServlet
Document doc;
Element docElem;
Connection Conn=null;
Statement stmt=null,stmt1=null;
ResultSet rs1=null,rs=null;
PrintWriter out;
Vector myVector1=new Vector();
Vector myVector2=new Vector();
String strSql="";
public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
res.setContentType("text/html");
out=res.getWriter();
try
String pubtype=req.getParameter("PubType");
String pubDate=req.getParameter("PubDate");
String toDate=req.getParameter("ToDate");
String fromDate=req.getParameter("FromDate");
if(pubDate==null)pubDate="2";
if(toDate==null)toDate="02/09/2005";
if(fromDate==null)fromDate="02/08/2005";
Class.forName("org.firebirdsql.jdbc.FBDriver");
Conn = DriverManager.getConnection("jdbc:firebirdsql:192.168.0.15/3050:D:/FBDatabases/PW1.GDB","SYSDBA","cohezia");
//Conn = DriverManager.getConnection("jdbc:firebirdsql:192.168.0.99/3050:/share/pw1.gdb","SYSDBA","cohezia");
stmt = Conn.createStatement( );
if(pubDate.equals("2"))
strSql="Select sh.ARTICLEID,sh.cuttingsdate,sh.READDATE,sh.headline,sh.SUMMARY,sh.AUTHOR,sh.PAGEFROM,sh.PUB_NAME,sh.READER_NAME,sh.PARENTTITLE,sh.CANMAIL,sh.PUBLICATION_ID,sh.JOURNALIST_ID,sh.ISPDF FROM SCANSHEADER sh,PUBLICATIONS p where sh.publication_id=p.publication_id and sh.readdate>'"+fromDate+"' and sh.readdate<'"+toDate+"' and p.pubtype='"+ pubtype +"' order by sh.ARTICLEID";
else
strSql="Select sh.ARTICLEID,sh.cuttingsdate,sh.READDATE,sh.headline,sh.SUMMARY,sh.AUTHOR,sh.PAGEFROM,sh.PUB_NAME,sh.READER_NAME,sh.PARENTTITLE,sh.CANMAIL,sh.PUBLICATION_ID,sh.JOURNALIST_ID,sh.ISPDF FROM SCANSHEADER sh,PUBLICATIONS p where sh.publication_id=p.publication_id and sh.cuttingsdate>'"+fromDate+"' and sh.cuttingsdate<'"+toDate+"' and p.pubtype='"+ pubtype +"' order by sh.ARTICLEID";
rs=stmt.executeQuery(strSql);
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
doc = builder.newDocument();
docElem = doc.createElement("RECORDLIST");
doc.appendChild(docElem);
Element rootElem = doc.createElement("RECORDS");
docElem.appendChild(rootElem);
String artid="";
while(rs.next())
Element artElem = doc.createElement("RECORD");
if((rs.getString("ARTICLEID")).length()>0)artElem.setAttribute("id",rs.getString("ARTICLEID"));
rootElem.appendChild(artElem);
Element rootFieldElem = doc.createElement("FIELDS");
artElem.appendChild(rootFieldElem);
Element eleCuttingDate = doc.createElement("FIELD");
rootFieldElem.appendChild(eleCuttingDate);
eleCuttingDate.setAttribute("fieldName","CUTTINGSDATE");
if((rs.getString("CUTTINGSDATE")).length()>0) eleCuttingDate.appendChild(doc.createTextNode(rs.getString("CUTTINGSDATE")));
Element eleReadDate = doc.createElement("FIELD");
rootFieldElem.appendChild(eleReadDate);
eleReadDate.setAttribute("fieldName","READDATE");
if((rs.getString("READDATE")).length()>0) eleReadDate.appendChild(doc.createTextNode(rs.getString("READDATE")));
Element eleHeadLine = doc.createElement("FIELD");
rootFieldElem.appendChild(eleHeadLine);
eleHeadLine.setAttribute("fieldName","HEADLINE");
if((rs.getString("HEADLINE")).length()>0) eleHeadLine.appendChild(doc.createTextNode(rs.getString("HEADLINE")));
Element eleSummary = doc.createElement("FIELD");
rootFieldElem.appendChild(eleSummary);
eleSummary.setAttribute("fieldName","SUMMARY");
if(rs.getString("SUMMARY")==null){
//out.println("String is null");
else
{eleSummary.appendChild(doc.createTextNode(rs.getString("SUMMARY")));}
Element eleAuthor = doc.createElement("FIELD");
rootFieldElem.appendChild(eleAuthor);
eleAuthor.setAttribute("fieldName","AUTHOR");
if((rs.getString("AUTHOR")).length()>0) eleAuthor.appendChild(doc.createTextNode(rs.getString("AUTHOR")));
Element elePageFrom = doc.createElement("FIELD");
rootFieldElem.appendChild(elePageFrom);
elePageFrom.setAttribute("fieldName","PAGEFROM");
if((rs.getString("PAGEFROM")).length()>0) elePageFrom.appendChild(doc.createTextNode(rs.getString("PAGEFROM")));
Element elePubName = doc.createElement("FIELD");
rootFieldElem.appendChild(elePubName);
elePubName.setAttribute("fieldName","PUBNAME");
if((rs.getString("PUB_NAME")).length()>0) elePubName.appendChild(doc.createTextNode(rs.getString("PUB_NAME")));
Element eleReaderName = doc.createElement("FIELD");
rootFieldElem.appendChild(eleReaderName);
eleReaderName.setAttribute("fieldName","READER NAME");
if((rs.getString("READER_NAME")).length()>0) eleReaderName.appendChild(doc.createTextNode(rs.getString("READER_NAME")));
Element eleParentTitle = doc.createElement("FIELD");
rootFieldElem.appendChild(eleParentTitle);
eleParentTitle.setAttribute("fieldName","PARENTTITLE");
if((rs.getString("PARENTTITLE")).length()>0)eleParentTitle.appendChild(doc.createTextNode(rs.getString("PARENTTITLE")));
Element eleCanMail = doc.createElement("FIELD");
rootFieldElem.appendChild(eleCanMail);
eleCanMail.setAttribute("fieldName","CANMAIL");
if((rs.getString("CANMAIL")).length()>0) eleCanMail.appendChild(doc.createTextNode(rs.getString("CANMAIL")));
Element elePublicationID = doc.createElement("FIELD");
rootFieldElem.appendChild(elePublicationID);
elePublicationID.setAttribute("fieldName","PUBLICATION_ID");
if((rs.getString("PUBLICATION_ID")).length()>0) elePublicationID.appendChild(doc.createTextNode(rs.getString("PUBLICATION_ID")));
Element eleJournlistID = doc.createElement("FIELD");
rootFieldElem.appendChild(eleJournlistID);
eleJournlistID.setAttribute("fieldName","JOURNALIST_ID");
if((rs.getString("JOURNALIST_ID")).length()>0) eleJournlistID.appendChild(doc.createTextNode(rs.getString("JOURNALIST_ID")));
Element eleIspdf = doc.createElement("FIELD");
rootFieldElem.appendChild(eleIspdf);
eleIspdf.setAttribute("fieldName","ISPDF");
if((rs.getString("ISPDF")).length()>0) eleIspdf.appendChild(doc.createTextNode(rs.getString("ISPDF")));
Element rootKeyElem=doc.createElement("KEYWORDS_CODES");
String[] arrCodes=getKeyCodes(rs.getString("ARTICLEID"));
int count1 = myVector1.size();
String[] myArray1=new String[count1];
myVector1.copyInto(myArray1);
int count2 = myVector2.size();
String[] myArray2=new String[count2];
myVector2.copyInto(myArray2);
for(int j=0;j<arrCodes.length;j++)
Element eleKeyword= doc.createElement("KEYWORD_CODE");
eleKeyword.setAttribute("CodeId",arrCodes[j]);
eleKeyword.setAttribute("LongName",myArray1[j]);
eleKeyword.setAttribute("CodeType",myArray2[j]);
rootKeyElem.appendChild(eleKeyword);
artElem.appendChild(rootKeyElem);
Source source = new DOMSource(docElem);
//File file = new File("/share/PrintDom.xml");
StringWriter rw=new StringWriter();
Result result = new StreamResult(rw);
//Result result = new DOMResult();
// Write the DOM document to the file
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.transform(source, result);
out.println(rw);
catch (ClassNotFoundException e)
out.println("Unable to load Driver Class" + e);
return;
//fileLog.log(e,"PressWatchFrame1.PressWatchFrame1()");
catch (SQLException se)
out.println(se);
catch (Exception e)
out.println(e);
finally{
try{
if(Conn!=null) Conn.close();
catch(SQLException ignored){}
public String[] getKeyCodes(String strArticleId)
Vector myVector=new Vector();
myVector1.removeAllElements();
myVector2.removeAllElements();
try{
stmt1=Conn.createStatement( );
//String strSql1="Select codeid FROM SCANSSUBJECT where articleid='"+ strArticleId +"'";
String strSql1="Select ss.codeid,c.longname,c.codetype FROM SCANSSUBJECT ss,CODES c where ss.codeid=c.codeid and articleid='"+ strArticleId +"'";
rs1=stmt1.executeQuery(strSql1);
String strCodes="";
while(rs1.next())
myVector.add(rs1.getString("codeid"));
myVector1.add(rs1.getString("longname"));
myVector2.add(rs1.getString("codetype"));
}catch (SQLException se)
out.println(se);
int count = myVector.size();
String[] myArray = new String[count];
myVector.copyInto(myArray);
return myArray;
..................Thanx
Maybe you are looking for
-
How can I make an iphone app with xcode that worrks like a newspaper? So that I can post articles on the app while it is on appstore. Can I directly connect the app with my mac or do I have to connect it to a database? Thanks
-
Hi All I an new to XI .I need information about the XSLT maping .pls help me on this task Thanking u. regards, ramesh
-
Ship to party master data and company code data
Hi, As we know that at the time of creating sold to prty master data we have to maintain Compant code data. But do we have to maintain Company code data if we create new Ship to party and Payer Master data. Regards jyoti
-
Survey repository Connector ID +Internal CATserver - configuration
Dear All, I have enabled Internal CATserver in our CRM 7.0 system. In survey repository in crm_survey_suite transaction I need to create a new parameter XML file for HTTPS. In the XML, what should be the value provided for the 'ConnectorId'. Please
-
Hello, I wanted to know in case of LOP in a current month where an employee has been separated with the current organization, what should be the number of ESI days that should be ideally coming in the RT table? e.g. If the employee is separated on 25