Api help
Hi,
I have to do a Java program to create an HTML element tree structure of any HTML document. Someone suggest me JDOM, but it seems that this api demands that I know previously the structure of the XML (I'd have to convert to xml)
Do you advice me any other api or approach to from any html document, save its structure and accede to any element
Thankx
MP
I once used JTidy for that kind of work. You can take a look yourself.
http://jtidy.sourceforge.net/
Similar Messages
-
I have just downloaded Buddy API for Director 11 (windows)
and it is not working for me. I have downloaded the file and place
'Buddy API Help.chm', 'Buddy API Xtra.x32' and 'Read me.txt into
'C:\Program Files\Adobe\Adobe Director 11\Configuration\Xtras'. I
have also added #namePPC:"Buddy API Xtra", #nameW32:"Buddy API
Xtra.x32" to the bottom of the xtrainfo.txt file.
I made a new project and named it 'test.dir' and saved this
in a filder called 'test' on the desktop. I placed one button on a
frame and added the code:
'on mouseUp me
baOpenFile( the moviePath & "test.txt" , "normal" )
end
I created a text file and named it 'test.txt' and saved this
into the test folder on the desktop.
I then saved a projector of the project into the same folder.
When I click on the button, nothing happens???? WHAT AM I
DOING WRONG?????In the Modify, Movies, Xtras list, it will likely be called
'Buddy API
Xtra'.
When you say that you push the button and "nothing happens".
Do you
mean that literally? Or do you get an error message of some
sort? If
you have not added BuddyAPI into the projector, you should
get an error
stating that baOpenFile is not available (or perhaps a less
useful
"script error").
If you are not even getting that, then I assume you are using
a
#flashComponent button and you need to go into the Property
Inspector's
Flash Component tab and change the 'eventPassMode' to
#passAlways in
order to make the button work. -
hi ,
i want to search api help for oracle.adf.view.faces.component.core.data.CoreTable.
where can i get that>
i want to search api help for oracle.adf.view.faces.component.core.data.CoreTable.
where can i get that
>
Not here.
This is the APEX forum.
Possibly you want {forum:id=83} -
Forms API help/examples - where can I find any?
Where can I find Forms 6i C API help or examples? It seems to be very difficult to find examples of how to use many of the functions or to figure out why they may not be working. I am experiencing many problems and would like to know where I can go to find answers.
I think it's an amazing move on Oracle's part to have exposed this type of API, but it seems rather silly not to have any public support for it.
Thanks,
Matt.Thanks,
I have seen both that application and document before. The application doesn't do much for you and the documentation is sparse.. I ended up digging through all of the C header files in the api directory and figured everything out from there. It took quite some time to do, but seeing as there are no examples other than those in the pdf that you mentioned, there was no other way.
Matt. -
Linux/Unix system API help
Hi thr..
Can anyone help where to find documentation for system calls in UNIX just like win32 API ... In windows thr is MSDN like an ocean for API help ..but for UNIX whr do i go for API functions and defnitions ???If you are programming in Java, don't use OS dependant calls.
If you want to use C/C++ use the man pages.
These are available on the web, search via google. -
Hi Everyone,
I need help in writng a pl/sql script(API) to move a thousand employees or more from an old business group to a new business group.
I am having a challenge doing this as it does not pick individual employees,
What can i include in my API to pick new and existing employees and move them from a business group to another
Kindly assist
thank you.I believe HR has embedded functionality - called Mass Move - that should be able to achieve this. You will probably need to look at HR documentation to see how this works.
MOS Doc 166363.1 - How to Setup Mass Move
HTH
Srini -
Running IronPort M660 / v7.2.0-390
Trying to use Reporting API as per this document (It was the most recent I could find): http://www.cisco.com/en/US/docs/security/security_management/sma/api/ESA_6.4.0_MR_Reporting_API.pdf
My goal is to be able to download the "Incoming Mail Summary" as a .csv from a Java program for additioanal processing. I started as suggested by working with the URLs in a browser (FireFox, Chrome).
We are using SSL. If I login manually and proceed to the Email Overview page, I am able to download the .csv for the "Incoming Mail Summary", although I am unable to see the URL by hovering over the "Export" link.
Ref Page 3 of the document, using the format http://username:[email protected]/monitor/[email protected]/monitor/reports works with the same username and login. When the program attempts to make the same call, the login succeeds, but the call to get the .csv using the same URL (below) fails even though the sid= cookie returned from the login is included. It returns the login page. I get the same result when omitting the username:password@ prefix to the same URL.
Perhaps I have the wrong URL entirely? I would expect an error page rather than the Login page again.
URL Used:
https://xxx.yyy.zzz:8000/monitor_email/overview?date_range=current_day&report_def_id=sma_overview&report_query_id=sma_overview_incoming_mail_over_time&format=csv
- Can you provide any suggestions? I'm open to any way to get the data in the .csv or .xml
- If you have example code that works with this "API", that would be hugely helpful.
-TerryHI Terry,
I can email you directly however we will still need to open an SR.
You can also do that here.
https://tools.cisco.com/ServiceRequestTool/create/authc/forms/CDClogin.fcc?TYPE=33619969&REALMOID=06-0001c776-caac-13ce-8cb3-83846dc90000&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$SM$GDuJAbSsi7kExzQDRfPKUItt%2bPcjKOjTGlbtk%2fRp7BdNYLiP9lyOBjXBU5PAxIXD&TARGET=http%3A%2F%2Ftools.cisco.com%2FServiceRequestTool%2Fcreate%2Flaunch.do
Christopher C Smith
CSE
Cisco IronPort Customer Support -
Windows API help files (Installation question)
I've been working in LabWindows/CVI for a few weeks, and have added some API calls. They work fine. However, when I go to Help/Windows API, I get the following message:
"The Win32 API documentation has not been installed. You can install the documentation from the LabWindow/CVI Platform DVD."
I have the Developer's suite DVDs, and ran the installer on the first, selected a custom install of LabWindows/CVI and saw that all the help files were installed, as were all the Windows API support files. In fact, the only things which weren't installed were the wizards for VS 200x. I tried installing the MSDN files, which is a bit of a help (I can go search on it), but, it's a bit big and slow compared to a normal help file.
What am I missing to install this?Hi Steve,
There was a problem with the MSDN help installer that shipped with VS 2009. It installs the help correctly, but CVI 2009 is not able to link to them because of a registry incompatibility. You have a couple of possible workarounds:
a) if you have CVI 9.x, and you still have the "MSDN Library Documentation" DVD that came in that package, you should install it and the help link from CVI 2009 should then work.
b) or you can simply get the same help online. Just browse to msdn.microsoft.com and enter the name of the function that you want to get for.
Luis -
Hi Im using the free Acrobat reader within my application for viewing PDF files only.
Its the same that gets displayed in a browser and is activated as an activeX control.
It actually runs out of process as AcroRD32.exe
This has an API and quite a bit is intuitive but part of it is not.
Is these a help guide for using this API within your apps or scripts?
I need to try a switch a few things off etc and attempt to scale the view relative to my app.
Thanks.You can find documentation about the API in the Acrobat SDK.
-
I am working with UCM API to access information related to Folders component.
ISCSSearchResponse result=null;
ISCSSearchAPI searchApi = this.application.getUCPMAPI ().getActiveAPI ().getSearchAPI ();
result = searchApi.search (context,strQuery, 100);
iter = result.getResults ().iterator ();
while (iter.hasNext ()) {
sres = (ISCSSearchResult) iter.next ();
folderApi = this.application.getUCPMAPI().getActiveAPI().getComponentFolderAPI();
ISCSFolderInfoResponse folderRes = folderApi.getFolder(context, sres.getFolderID());
ISCSFolder fold = folderRes.getFolder();
String folderPath = fold.getFolderPath();
I need to execute the code inside the while loop based on a condition. I need to check if the returned item from search results is a document or a folder, that is the item in *'sres'*.
Can someone please help me with this?
Thank you,
Padmaja.To search in a case sensitive manner, if you're using an Oracle database I know you can set a variable in config.cfg -- DatabasePreserveCase. This may also work for other databases, but I am not sure.
The available fields to filter on are all the metadata fields, whether they be UCM metadata fields or custom metadata fields.
The query is doing a database query so you need to use the name of the column name in the database -- custom variables start with x and ucm variables start with d.
I'm not an expert on UCM, but have been working on an implementation. I didn't really find a comprehensive guide for CIS, just used the examples from the sample code, the javadocs, some forum posts, and trial and error. -
I have been researching FlashPaper and I downloaded the trial
version, but I cannot determine how to use the API. I can't even
figure out where it is in the FlashPaper program files. Resources I
have consulted include the
FlashPaper
Documentation and the
FlashPaper
Article "Importing FlashPaper 2 Documents into Macromedia Flash and
Using the FlashPaper API". Neither of these explains clearly
how to access the API and as I do not have the Flash authoring
environment, I cannot see for myself how it works. Is the
FlashPaper API only available in the Flash authoring environment?
Thank you for your help,
JosephThe trouble with FlashPaper API is that it can only be used
after you a purchased a Flash development environment, also you may
find that when you import a flashpaper document into another flash
movie, the behaviour of the interface will be very different with
respect to the zoom function and the proporationality of the
flashpaper window as you resize the browser may look strange.
I found this web site: https://www.zanzibarfiction.com/shop/
they sell flashpaper plugins with a removed print or select
buttons.
Also they have these different color schemes for Flashpaper
to match your web site theme - awesome! The plugins can be
installed very easily into your flashpaper installation. Check it
out. -
API Help -- Extract method results in Catstrophic failure!
Hi all,
We're trying to implement the HFM api to pull data out into a CSV. When we run HsvData.Extract, the call returns an exception:
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
I'm not sure what this means and I can't find any help on the 'net. Our extract call looks like:
hsvLoad.Extract(dataFilePath, logFilePath, settings);
settings is an object array that looks like this before we call Extract:
settings {object[20]}
[0] 2
[1] ";"
[2] "LogFile.log"
[3] false
[4] false
[5] false
[6] 1
[7] 2009
[8] int[12] //selected periods, 67108864 - 67108875 (Jan - Dec)
[9] int[2] // selected entities, 0 and 1
[10] int[1] //selected parents, 0
[11] int[4] //selected accounts 0 - 3
[12] int[0]
[13] int[0]
[14] int[0]
[15] int[0]
[16] int[0]
[17] int[0]
[18] false
[19] false
items 12 - 19 are default, we don't change them. The data file is empty and the log file says "0 records extracted". If I try to Extract from the UI selecting the same items (accounts, years, application, etc), I get the full results.
Can anyone tell me what the Catastrophic failure means? Are some of our settings mapped wrong? I can post additional code if that helps.
Thanks,
ShawnHere's the method that just doesn't return data:
public bool TryExportDataFromHFM(string dataFilePath,string logFilePath, string scenLabel,int year, out string error)
bool retval = false;
error = string.Empty;
HSVCDATALOADLib.HsvcDataLoad oHsvcDataLoad = null;
HSVCDATALOADLib.IHsvLoadExtractOptions oHsvcDataLoadExtOptions = null;
HSVCDATALOADLib.IHsvLoadExtractOption oExtractOption = null;
try
if (string.IsNullOrEmpty(scenLabel))
error = NO_SCENARIOS_SPECIFIED_MSG;
return false;
if (year < 0)
error = NO_YEARS_SPECIFIED_MSG;
return false;
int currScenMemberId;
if (!TryGetMemberIdFromLabel((short)HFMCONSTANTSLib.tagHFMDIMENSIONS.DIMENSIONSCENARIO, scenLabel, out currScenMemberId, out error))
error = string.Format("Failed to find member Id for Scenario: {0}", scenLabel);
return false;
int currYearMemberId;
if (!TryGetMemberIdFromLabel((short)HFMCONSTANTSLib.tagHFMDIMENSIONS.DIMENSIONYEAR, year.ToString(), out currYearMemberId, out error))
error = string.Format("Failed to find member Id for Year: {0}", year.ToString());
return false;
oHsvcDataLoad = new HSVCDATALOADLib.HsvcDataLoad();
//set session
oHsvcDataLoad.SetSession(_oHsvSession);
//get extract options
oHsvcDataLoadExtOptions = oHsvcDataLoad.ExtractOptions;
//get extract option for scenario
oExtractOption = oHsvcDataLoadExtOptions.get_Item(
HSVCDATALOADLib.HSV_DATAEXTRACT_OPTION.HSV_DATAEXTRACT_OPT_SCENARIO_SUBSET);
//set scenarion member id
oExtractOption.CurrentValue = currScenMemberId;
//get extract option for year
oExtractOption = oHsvcDataLoadExtOptions.get_Item(
HSVCDATALOADLib.HSV_DATAEXTRACT_OPTION.HSV_DATAEXTRACT_OPT_YEAR_SUBSET);
oExtractOption.CurrentValue = currYearMemberId;
//get extract option for periods
oExtractOption = oHsvcDataLoadExtOptions.get_Item(
HSVCDATALOADLib.HSV_DATAEXTRACT_OPTION.HSV_DATAEXTRACT_OPT_PERIOD_SUBSET);
//COMMENTED OUT FOR TEST:
Dictionary<string, int> dictPerMemIds;
if (!TryGetAllPeriodLabelsMemberIds(out dictPerMemIds, out error))
error = string.Format("Failed to get member Ids for periods. Error:{0}", error);
return false;
//set currentValue with array of perion member ids
//int[] perArr = new int[] { dictPerMemIds["May"] };
//oExtractOption.CurrentValue = perArr; // periodMemberIds.ToArray();
//NEW TEST CODE
List<int> periods = new List<int>();
foreach (string key in dictPerMemIds.Keys)
if (key.Equals("[Year]") || key.StartsWith("Quarter"))
continue;
else
periods.Add(dictPerMemIds[key]);
oExtractOption.CurrentValue = periods.ToArray();
//get extract option for accounts
oExtractOption = oHsvcDataLoadExtOptions.get_Item(
HSVCDATALOADLib.HSV_DATAEXTRACT_OPTION.HSV_DATAEXTRACT_OPT_ACCOUNT_SUBSET);
Dictionary<string, int> dictAccntLabelMemberIds;
if (!TryGetAllAccountLabelsMemberIds(out dictAccntLabelMemberIds,out error))
error = string.Format("Failed to get member Ids for accounts. Error: {0}", error);
return false;
//int[] acctArr = new int[] { dictAccntLabelMemberIds["SalesRevenue"] };
//oExtractOption.CurrentValue = acctArr; // dictAccntLabelMemberIds.Values.ToArray();
oExtractOption.CurrentValue = dictAccntLabelMemberIds.Values.ToArray();
//Sets the entity children
oExtractOption = oHsvcDataLoadExtOptions.get_Item(
HSVCDATALOADLib.HSV_DATAEXTRACT_OPTION.HSV_DATAEXTRACT_OPT_ENTITY_SUBSET);
Dictionary<string, int> dictEntLblMemId;
if (!TryGetAllEntityLabelsMemberIds(out dictEntLblMemId,out error))
error = string.Format("Failed to get member Ids for entities. Error: {0}", error);
return false;
//int[] entArr = new int[] { dictEntLblMemId["Corporate"] };
//oExtractOption.CurrentValue = entArr; // dictEntLblMemId.Values.ToArray();
oExtractOption.CurrentValue = dictEntLblMemId.Values.ToArray();
oExtractOption = oHsvcDataLoadExtOptions.get_Item(
HSVCDATALOADLib.HSV_DATAEXTRACT_OPTION. HSV_DATAEXTRACT_OPT_VIEW);
oExtractOption.CurrentValue = HSVCDATALOADLib.HSV_DATA_VIEW.HSV_DATA_VIEW_YTD; //HSV_DATA_VIEW_PERIODIC; // HSV_DATA_VIEW_SCENARIO;
oExtractOption = oHsvcDataLoadExtOptions.get_Item(
HSVCDATALOADLib.HSV_DATAEXTRACT_OPTION.HSV_DATAEXTRACT_OPT_EXTRACT_CALC);
oExtractOption.CurrentValue = true;
//Sets the delimiter
oExtractOption = oHsvcDataLoadExtOptions.get_Item(HSVCDATALOADLib.HSV_DATAEXTRACT_OPTION.HSV_DATAEXTRACT_OPT_DELIMITER_CHAR);
oExtractOption.CurrentValue = ";";
oHsvcDataLoad.Extract(dataFilePath, logFilePath);
retval = true;
catch (Exception ex)
error = string.Format("Failed to export data to file from HFM. Error: {0}", ex.Message);
retval = false;
finally
ReleaseCOMObject(oHsvcDataLoad);
ReleaseCOMObject(oHsvcDataLoadExtOptions);
ReleaseCOMObject(oExtractOption);
return retval;
Thanks for the help -
Essbase Visual Basic API - Help File locations
Hi,
I was wondering if anyone can help. Normally on XP Office 2003 I can get the VBA help via Help->Essbase Help. However I'm on Vista Office 2007 and when I goto the Add Ins->Essbase Help, I get an error that states:
Why can't I get Help from this program?
The Help for this program was created in Windows Help format, which was used in previous versions of Windows and it is not supported in Windows Vista.
For more information, see Windows Help program (WinHlp32.exe) is no longer included with Windows on the Microsoft support website.
So I need another way to access these help files.. Is there another way to do this??????
Thanks,
Samloading data from the VB api uses the import function. Look at http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_api/topapilist.htm for the system 9 version of the documentation. The document gives you samples for different functions you will need. from initialization, login, import, logout and termination
-
Export data to excel with EPPlus and Web Api - HELP!
I am trying to do a simple excel file export with EPPlus and Web Api. In the html client I have a button that calls the web api and opens a new window. No error is thrown, but the result is always "file could not be downloaded". I get the
save file dialog but the file name is Order/ instead of the expected Orders.xls or Orders.xlsx. Can anyone help? I'm surprised this is so difficult.
using System.Linq;
using System.Net.Http;
using System.Web.Http;
using OfficeOpenXml;
using System.Collections.Generic;
using System.IO;
using System.Net.Http.Headers;
using System.Net;
using System.ComponentModel.DataAnnotations;
namespace LightSwitchApplication
public class OrdersController : ApiController
// GET: api/Orders
[HttpGet]
public HttpResponseMessage Get()
HttpResponseMessage response;
response = Request.CreateResponse(HttpStatusCode.OK);
MediaTypeHeaderValue mediaType = new MediaTypeHeaderValue("application/octet-stream");
response.Content = new StreamContent(GetExcelSheet());
response.Content.Headers.ContentType = mediaType;
response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment");
response.Content.Headers.ContentDisposition.FileName = "Orders.xls";
return response;
public List<Order> GetOrders()
List<Order> colOrders = new List<Order>();
using (ServerApplicationContext ctx = ServerApplicationContext.Current ??
ServerApplicationContext.CreateContext())
colOrders = ctx.DataWorkspace.Data.Orders.GetQuery().Execute().ToList();
return colOrders;
public MemoryStream GetExcelSheet()
using (var package = new ExcelPackage())
var worksheet = package.Workbook.Worksheets.Add("Orders");
worksheet.Cells["A1"].LoadFromCollection(GetOrders(), false);
package.Save();
var stream = new MemoryStream(package.GetAsByteArray());
return stream;
This has been driving me crazy for two days!Making some progress. I got the spreadsheet into a byte[] and used code from Paul Van
Bladel's blog to make the HttpResponseMessage. If I comment out the LightSwitch data access code, this works to export a spreadsheet from a static list to the browser from Web Api.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Web.Http;
using Microsoft.LightSwitch;
using Microsoft.LightSwitch.Details;
using OfficeOpenXml;
using System.ComponentModel.DataAnnotations;
namespace LightSwitchApplication
public class Order
[Key]
public int Id { get; set; }
public string OrderNumber { get; set; }
public class OrdersController : ApiController
// GET: api/Orders
[HttpGet]
public HttpResponseMessage Download()
MediaTypeHeaderValue mediaType =
MediaTypeHeaderValue.Parse("application/octet-stream");
byte[] excelFile = ExcelSheet();
string fileName = "Orders.xlsx";
MemoryStream memoryStream = new MemoryStream(excelFile);
HttpResponseMessage response =
response = Request.CreateResponse(HttpStatusCode.OK);
response.Content = new StreamContent(memoryStream);
response.Content.Headers.ContentType = mediaType;
response.Content.Headers.ContentDisposition =
new ContentDispositionHeaderValue("fileName") { FileName = fileName };
return response;
public List<Order> Orders()
List<Order> orders = new List<Order>();
orders.Add(new Order { Id = 1, OrderNumber = "123456789" });
orders.Add(new Order { Id = 2, OrderNumber = "987654321" });
return orders;
// this doesn't work
//public List<Order> Orders()
// List<Order> colOrders = new List<Order>();
// using (ServerApplicationContext ctx = ServerApplicationContext.Current ??
// ServerApplicationContext.CreateContext())
// colOrders = ctx.DataWorkspace.Data.Orders.GetQuery().Execute().ToList();
// return colOrders;
public byte[] ExcelSheet()
using (var package = new ExcelPackage())
var worksheet = package.Workbook.Worksheets.Add("Orders");
worksheet.Cells["A1"].LoadFromCollection(Orders(), false);
byte[] bytes = package.GetAsByteArray();
return bytes;
The problem is that the LightSwitch query (commented out in the code above) is trying to load navigation properties for the orders. Error: "It is not valid to access this object on the current thread." How do I solve this? -
Security API help needed / howto list user in group
Hi there,
i have tried all example programs of the hyperion security api. hard work to correct the errors in these scripts.
now i can create native groups an users and can create groups on groups or put users in native groups.
i have read the java doc / reference for the security api too but its not possible for me to list users of a group (group reference by name).
is there anybody who can help with a code sample to list users of a group like "testgroup" ?
something like (...getGroups(context,"testgroup")...) ??
Best Regards
KaiPlease don't cross-post. It is considered very rude to do that here:
http://forum.java.sun.com/thread.jspa?threadID=5233033&messageID=9953169#9953169 -
Twitter API help needed immediately
I have developed a twitter API in Flash Professional CS4. It works fine when it plays in the flash player locally. But when I publish the file and play it in a browser it asks for settings to be modified. Since those were the local settings I have modified them and played the file in browser and it worked fine.
Now, when I upload the file to server and embed the swf into a html file and try to play it from the server nothing happens. The API doesn't load the feeds from twitter site. The display is always blank. http://sravan313.inz.cc/home.html
Possible solutions I have tried.....
added security code in flash
1st method:
flash.system.Security.allowDomain("*");
flash.system.Security.loadPolicyFile("http://twitter.com/crossdomain.xml");
2nd method:
added the crossdomain.xml policy file from http://twitter.com/crossdomain.xml
3rd method:
followed any of the above methods along with changing the "Access network only" in publish settings.
Can anyone help me with possible solutions???
guys its very urgent!!! I need help immediately.....Hi Peter
so, what do you really suggest? Can you help me regarding this
? I need this very badly and little bit urgently.... any suggestions
are appreciated.
and Darshan,
Thanks, a lot. Your links were very helpful. Could understand a little bit better about cross domains.
Maybe you are looking for
-
Apple tv connection to computer
can I use any USB-mini cable on my Apple TV or does it have to be an Apple cable?
-
Looking up invoking method name
Hi, first the code: class Test{ test1(){ OtherClass otherObject = new OtherClass(); otherObject.method() test2(){ OtherClass otherObject = new OtherClass(); otherObject.method() }the question: is it possible for me to receive the na
-
File Receiver - Special Char (182) for fieldSeparator
Hi, I need to create files using the character 182 as columns separator. I read in the help.sap.com that the format for special char is '0xHH'. I put for the fieldseparator the value '0xB2' but the error "Conversion initialization failed with java.la
-
This is a pretty basic question but I have never had this issue before. I have an mpeg file (mpeg1 muxed codec) of 18mb which is too big to email. What's the best way of either decreasing the file size or compressing it? Also, I seem to think that ne
-
SQL> SELECT SID,ORACLE_USERNAME, OS_USER_NAME, LOCKED_MODE, OBJECT_NAME, OBJECT_TYPE 2 FROM V$LOCKED_OBJECT A,DBA_OBJECTS B 3 WHERE A.OBJECT_ID = B.OBJECT_ID 4 SQL> / FROM V$LOCKED_OBJECT A,DBA_OBJECTS B ERROR at line 2: ORA-00942: table or view does